diff --git a/descriptions/api.github.com/api.github.com.2022-11-28.json b/descriptions/api.github.com/api.github.com.2022-11-28.json index 034293241..522a8e51f 100644 --- a/descriptions/api.github.com/api.github.com.2022-11-28.json +++ b/descriptions/api.github.com/api.github.com.2022-11-28.json @@ -25232,42 +25232,97 @@ ], "requestBody": { "required": true, - "description": "Details of the item to add to the project.", + "description": "Details of the item to add to the project. You can specify either the database ID or the repository owner, name, and issue/PR number.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Issue", - "PullRequest" - ], - "description": "The type of item to add to the project. Must be either Issue or PullRequest." + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "id": { + "type": "integer", + "description": "The unique ID of the issue or pull request to add to the project." + } + }, + "required": [ + "type", + "id" + ] }, - "id": { - "type": "integer", - "description": "The numeric ID of the issue or pull request to add to the project." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "owner": { + "type": "string", + "description": "The repository owner login." + }, + "repo": { + "type": "string", + "description": "The repository name." + }, + "number": { + "type": "integer", + "description": "The issue or pull request number." + } + }, + "required": [ + "type", + "owner", + "repo", + "number" + ] } - }, - "required": [ - "type", - "id" ] }, "examples": { - "issue": { + "issue-with-id": { + "summary": "Add issue by database ID", "value": { "type": "Issue", "id": 3 } }, - "pull_request": { + "pull_request-with-id": { + "summary": "Add pull request by database ID", "value": { "type": "PullRequest", "id": 3 } + }, + "issue-with-nwo": { + "summary": "Add issue by repository and number", + "value": { + "type": "Issue", + "owner": "octocat", + "repo": "hello-world", + "number": 42 + } + }, + "pull_request-with-nwo": { + "summary": "Add pull request by repository and number", + "value": { + "type": "PullRequest", + "owner": "octocat", + "repo": "hello-world", + "number": 123 + } } } } @@ -75743,42 +75798,97 @@ ], "requestBody": { "required": true, - "description": "Details of the item to add to the project.", + "description": "Details of the item to add to the project. You can specify either the database ID or the repository owner, name, and issue/PR number.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Issue", - "PullRequest" - ], - "description": "The type of item to add to the project. Must be either Issue or PullRequest." + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "id": { + "type": "integer", + "description": "The unique ID of the issue or pull request to add to the project." + } + }, + "required": [ + "type", + "id" + ] }, - "id": { - "type": "integer", - "description": "The numeric ID of the issue or pull request to add to the project." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "owner": { + "type": "string", + "description": "The repository owner login." + }, + "repo": { + "type": "string", + "description": "The repository name." + }, + "number": { + "type": "integer", + "description": "The issue or pull request number." + } + }, + "required": [ + "type", + "owner", + "repo", + "number" + ] } - }, - "required": [ - "type", - "id" ] }, "examples": { - "issue": { + "issue-with-id": { + "summary": "Add issue by database ID", "value": { "type": "Issue", "id": 3 } }, - "pull_request": { + "pull_request-with-id": { + "summary": "Add pull request by database ID", "value": { "type": "PullRequest", "id": 3 } + }, + "issue-with-nwo": { + "summary": "Add issue by repository and number", + "value": { + "type": "Issue", + "owner": "octocat", + "repo": "hello-world", + "number": 42 + } + }, + "pull_request-with-nwo": { + "summary": "Add pull request by repository and number", + "value": { + "type": "PullRequest", + "owner": "octocat", + "repo": "hello-world", + "number": 123 + } } } } @@ -287189,6 +287299,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -307823,6 +307938,8 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [], "organization": { "login": "github", "id": 1, @@ -307863,6 +307980,11 @@ "state": "pending", "role": "admin", "organization_url": "https://api.github.com/orgs/invitocat", + "direct_membership": false, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -307906,6 +308028,11 @@ "state": "pending", "role": "admin", "organization_url": "https://api.github.com/orgs/invitocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -307948,6 +308075,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, diff --git a/descriptions/api.github.com/api.github.com.2022-11-28.yaml b/descriptions/api.github.com/api.github.com.2022-11-28.yaml index 7b36ef462..8dc8cbc48 100644 --- a/descriptions/api.github.com/api.github.com.2022-11-28.yaml +++ b/descriptions/api.github.com/api.github.com.2022-11-28.yaml @@ -18282,35 +18282,76 @@ paths: - "$ref": "#/components/parameters/project-number" requestBody: required: true - description: Details of the item to add to the project. + description: Details of the item to add to the project. You can specify either + the database ID or the repository owner, name, and issue/PR number. content: application/json: schema: - type: object - properties: - type: - type: string - enum: - - Issue - - PullRequest - description: The type of item to add to the project. Must be either - Issue or PullRequest. - id: - type: integer - description: The numeric ID of the issue or pull request to add - to the project. - required: - - type - - id + oneOf: + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + id: + type: integer + description: The unique ID of the issue or pull request to add + to the project. + required: + - type + - id + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + owner: + type: string + description: The repository owner login. + repo: + type: string + description: The repository name. + number: + type: integer + description: The issue or pull request number. + required: + - type + - owner + - repo + - number examples: - issue: + issue-with-id: + summary: Add issue by database ID value: type: Issue id: 3 - pull_request: + pull_request-with-id: + summary: Add pull request by database ID value: type: PullRequest id: 3 + issue-with-nwo: + summary: Add issue by repository and number + value: + type: Issue + owner: octocat + repo: hello-world + number: 42 + pull_request-with-nwo: + summary: Add pull request by repository and number + value: + type: PullRequest + owner: octocat + repo: hello-world + number: 123 responses: '201': description: Response @@ -54901,35 +54942,76 @@ paths: - "$ref": "#/components/parameters/project-number" requestBody: required: true - description: Details of the item to add to the project. + description: Details of the item to add to the project. You can specify either + the database ID or the repository owner, name, and issue/PR number. content: application/json: schema: - type: object - properties: - type: - type: string - enum: - - Issue - - PullRequest - description: The type of item to add to the project. Must be either - Issue or PullRequest. - id: - type: integer - description: The numeric ID of the issue or pull request to add - to the project. - required: - - type - - id + oneOf: + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + id: + type: integer + description: The unique ID of the issue or pull request to add + to the project. + required: + - type + - id + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + owner: + type: string + description: The repository owner login. + repo: + type: string + description: The repository name. + number: + type: integer + description: The issue or pull request number. + required: + - type + - owner + - repo + - number examples: - issue: + issue-with-id: + summary: Add issue by database ID value: type: Issue id: 3 - pull_request: + pull_request-with-id: + summary: Add pull request by database ID value: type: PullRequest id: 3 + issue-with-nwo: + summary: Add issue by repository and number + value: + type: Issue + owner: octocat + repo: hello-world + number: 42 + pull_request-with-nwo: + summary: Add pull request by repository and number + value: + type: PullRequest + owner: octocat + repo: hello-world + number: 123 responses: '201': description: Response @@ -215311,6 +215393,10 @@ components: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -233040,6 +233126,8 @@ components: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: [] organization: login: github id: 1 @@ -233076,6 +233164,10 @@ components: state: pending role: admin organization_url: https://api.github.com/orgs/invitocat + direct_membership: false + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -233114,6 +233206,10 @@ components: state: pending role: admin organization_url: https://api.github.com/orgs/invitocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -233152,6 +233248,10 @@ components: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 diff --git a/descriptions/api.github.com/api.github.com.json b/descriptions/api.github.com/api.github.com.json index 034293241..522a8e51f 100644 --- a/descriptions/api.github.com/api.github.com.json +++ b/descriptions/api.github.com/api.github.com.json @@ -25232,42 +25232,97 @@ ], "requestBody": { "required": true, - "description": "Details of the item to add to the project.", + "description": "Details of the item to add to the project. You can specify either the database ID or the repository owner, name, and issue/PR number.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Issue", - "PullRequest" - ], - "description": "The type of item to add to the project. Must be either Issue or PullRequest." + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "id": { + "type": "integer", + "description": "The unique ID of the issue or pull request to add to the project." + } + }, + "required": [ + "type", + "id" + ] }, - "id": { - "type": "integer", - "description": "The numeric ID of the issue or pull request to add to the project." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "owner": { + "type": "string", + "description": "The repository owner login." + }, + "repo": { + "type": "string", + "description": "The repository name." + }, + "number": { + "type": "integer", + "description": "The issue or pull request number." + } + }, + "required": [ + "type", + "owner", + "repo", + "number" + ] } - }, - "required": [ - "type", - "id" ] }, "examples": { - "issue": { + "issue-with-id": { + "summary": "Add issue by database ID", "value": { "type": "Issue", "id": 3 } }, - "pull_request": { + "pull_request-with-id": { + "summary": "Add pull request by database ID", "value": { "type": "PullRequest", "id": 3 } + }, + "issue-with-nwo": { + "summary": "Add issue by repository and number", + "value": { + "type": "Issue", + "owner": "octocat", + "repo": "hello-world", + "number": 42 + } + }, + "pull_request-with-nwo": { + "summary": "Add pull request by repository and number", + "value": { + "type": "PullRequest", + "owner": "octocat", + "repo": "hello-world", + "number": 123 + } } } } @@ -75743,42 +75798,97 @@ ], "requestBody": { "required": true, - "description": "Details of the item to add to the project.", + "description": "Details of the item to add to the project. You can specify either the database ID or the repository owner, name, and issue/PR number.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Issue", - "PullRequest" - ], - "description": "The type of item to add to the project. Must be either Issue or PullRequest." + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "id": { + "type": "integer", + "description": "The unique ID of the issue or pull request to add to the project." + } + }, + "required": [ + "type", + "id" + ] }, - "id": { - "type": "integer", - "description": "The numeric ID of the issue or pull request to add to the project." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "owner": { + "type": "string", + "description": "The repository owner login." + }, + "repo": { + "type": "string", + "description": "The repository name." + }, + "number": { + "type": "integer", + "description": "The issue or pull request number." + } + }, + "required": [ + "type", + "owner", + "repo", + "number" + ] } - }, - "required": [ - "type", - "id" ] }, "examples": { - "issue": { + "issue-with-id": { + "summary": "Add issue by database ID", "value": { "type": "Issue", "id": 3 } }, - "pull_request": { + "pull_request-with-id": { + "summary": "Add pull request by database ID", "value": { "type": "PullRequest", "id": 3 } + }, + "issue-with-nwo": { + "summary": "Add issue by repository and number", + "value": { + "type": "Issue", + "owner": "octocat", + "repo": "hello-world", + "number": 42 + } + }, + "pull_request-with-nwo": { + "summary": "Add pull request by repository and number", + "value": { + "type": "PullRequest", + "owner": "octocat", + "repo": "hello-world", + "number": 123 + } } } } @@ -287189,6 +287299,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -307823,6 +307938,8 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [], "organization": { "login": "github", "id": 1, @@ -307863,6 +307980,11 @@ "state": "pending", "role": "admin", "organization_url": "https://api.github.com/orgs/invitocat", + "direct_membership": false, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -307906,6 +308028,11 @@ "state": "pending", "role": "admin", "organization_url": "https://api.github.com/orgs/invitocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -307948,6 +308075,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, diff --git a/descriptions/api.github.com/api.github.com.yaml b/descriptions/api.github.com/api.github.com.yaml index 7b36ef462..8dc8cbc48 100644 --- a/descriptions/api.github.com/api.github.com.yaml +++ b/descriptions/api.github.com/api.github.com.yaml @@ -18282,35 +18282,76 @@ paths: - "$ref": "#/components/parameters/project-number" requestBody: required: true - description: Details of the item to add to the project. + description: Details of the item to add to the project. You can specify either + the database ID or the repository owner, name, and issue/PR number. content: application/json: schema: - type: object - properties: - type: - type: string - enum: - - Issue - - PullRequest - description: The type of item to add to the project. Must be either - Issue or PullRequest. - id: - type: integer - description: The numeric ID of the issue or pull request to add - to the project. - required: - - type - - id + oneOf: + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + id: + type: integer + description: The unique ID of the issue or pull request to add + to the project. + required: + - type + - id + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + owner: + type: string + description: The repository owner login. + repo: + type: string + description: The repository name. + number: + type: integer + description: The issue or pull request number. + required: + - type + - owner + - repo + - number examples: - issue: + issue-with-id: + summary: Add issue by database ID value: type: Issue id: 3 - pull_request: + pull_request-with-id: + summary: Add pull request by database ID value: type: PullRequest id: 3 + issue-with-nwo: + summary: Add issue by repository and number + value: + type: Issue + owner: octocat + repo: hello-world + number: 42 + pull_request-with-nwo: + summary: Add pull request by repository and number + value: + type: PullRequest + owner: octocat + repo: hello-world + number: 123 responses: '201': description: Response @@ -54901,35 +54942,76 @@ paths: - "$ref": "#/components/parameters/project-number" requestBody: required: true - description: Details of the item to add to the project. + description: Details of the item to add to the project. You can specify either + the database ID or the repository owner, name, and issue/PR number. content: application/json: schema: - type: object - properties: - type: - type: string - enum: - - Issue - - PullRequest - description: The type of item to add to the project. Must be either - Issue or PullRequest. - id: - type: integer - description: The numeric ID of the issue or pull request to add - to the project. - required: - - type - - id + oneOf: + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + id: + type: integer + description: The unique ID of the issue or pull request to add + to the project. + required: + - type + - id + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + owner: + type: string + description: The repository owner login. + repo: + type: string + description: The repository name. + number: + type: integer + description: The issue or pull request number. + required: + - type + - owner + - repo + - number examples: - issue: + issue-with-id: + summary: Add issue by database ID value: type: Issue id: 3 - pull_request: + pull_request-with-id: + summary: Add pull request by database ID value: type: PullRequest id: 3 + issue-with-nwo: + summary: Add issue by repository and number + value: + type: Issue + owner: octocat + repo: hello-world + number: 42 + pull_request-with-nwo: + summary: Add pull request by repository and number + value: + type: PullRequest + owner: octocat + repo: hello-world + number: 123 responses: '201': description: Response @@ -215311,6 +215393,10 @@ components: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -233040,6 +233126,8 @@ components: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: [] organization: login: github id: 1 @@ -233076,6 +233164,10 @@ components: state: pending role: admin organization_url: https://api.github.com/orgs/invitocat + direct_membership: false + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -233114,6 +233206,10 @@ components: state: pending role: admin organization_url: https://api.github.com/orgs/invitocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -233152,6 +233248,10 @@ components: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 diff --git a/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json b/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json index 532b02d6b..3b585b29c 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json +++ b/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json @@ -133145,6 +133145,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -133588,6 +133593,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -159720,42 +159730,97 @@ ], "requestBody": { "required": true, - "description": "Details of the item to add to the project.", + "description": "Details of the item to add to the project. You can specify either the database ID or the repository owner, name, and issue/PR number.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Issue", - "PullRequest" - ], - "description": "The type of item to add to the project. Must be either Issue or PullRequest." + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "id": { + "type": "integer", + "description": "The unique ID of the issue or pull request to add to the project." + } + }, + "required": [ + "type", + "id" + ] }, - "id": { - "type": "integer", - "description": "The numeric ID of the issue or pull request to add to the project." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "owner": { + "type": "string", + "description": "The repository owner login." + }, + "repo": { + "type": "string", + "description": "The repository name." + }, + "number": { + "type": "integer", + "description": "The issue or pull request number." + } + }, + "required": [ + "type", + "owner", + "repo", + "number" + ] } - }, - "required": [ - "type", - "id" ] }, "examples": { - "issue": { + "issue-with-id": { + "summary": "Add issue by database ID", "value": { "type": "Issue", "id": 3 } }, - "pull_request": { + "pull_request-with-id": { + "summary": "Add pull request by database ID", "value": { "type": "PullRequest", "id": 3 } + }, + "issue-with-nwo": { + "summary": "Add issue by repository and number", + "value": { + "type": "Issue", + "owner": "octocat", + "repo": "hello-world", + "number": 42 + } + }, + "pull_request-with-nwo": { + "summary": "Add pull request by repository and number", + "value": { + "type": "PullRequest", + "owner": "octocat", + "repo": "hello-world", + "number": 123 + } } } } @@ -569239,6 +569304,8 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [], "organization": { "login": "github", "id": 1, @@ -569279,6 +569346,11 @@ "state": "pending", "role": "admin", "organization_url": "https://api.github.com/orgs/invitocat", + "direct_membership": false, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -569766,6 +569838,11 @@ "state": "pending", "role": "admin", "organization_url": "https://api.github.com/orgs/invitocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -570199,6 +570276,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -636924,42 +637006,97 @@ ], "requestBody": { "required": true, - "description": "Details of the item to add to the project.", + "description": "Details of the item to add to the project. You can specify either the database ID or the repository owner, name, and issue/PR number.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Issue", - "PullRequest" - ], - "description": "The type of item to add to the project. Must be either Issue or PullRequest." + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "id": { + "type": "integer", + "description": "The unique ID of the issue or pull request to add to the project." + } + }, + "required": [ + "type", + "id" + ] }, - "id": { - "type": "integer", - "description": "The numeric ID of the issue or pull request to add to the project." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "owner": { + "type": "string", + "description": "The repository owner login." + }, + "repo": { + "type": "string", + "description": "The repository name." + }, + "number": { + "type": "integer", + "description": "The issue or pull request number." + } + }, + "required": [ + "type", + "owner", + "repo", + "number" + ] } - }, - "required": [ - "type", - "id" ] }, "examples": { - "issue": { + "issue-with-id": { + "summary": "Add issue by database ID", "value": { "type": "Issue", "id": 3 } }, - "pull_request": { + "pull_request-with-id": { + "summary": "Add pull request by database ID", "value": { "type": "PullRequest", "id": 3 } + }, + "issue-with-nwo": { + "summary": "Add issue by repository and number", + "value": { + "type": "Issue", + "owner": "octocat", + "repo": "hello-world", + "number": 42 + } + }, + "pull_request-with-nwo": { + "summary": "Add pull request by repository and number", + "value": { + "type": "PullRequest", + "owner": "octocat", + "repo": "hello-world", + "number": 123 + } } } } diff --git a/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml b/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml index c4d1394e5..ed8839170 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml +++ b/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml @@ -33792,6 +33792,10 @@ paths: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -39730,35 +39734,76 @@ paths: - *263 requestBody: required: true - description: Details of the item to add to the project. + description: Details of the item to add to the project. You can specify either + the database ID or the repository owner, name, and issue/PR number. content: application/json: schema: - type: object - properties: - type: - type: string - enum: - - Issue - - PullRequest - description: The type of item to add to the project. Must be either - Issue or PullRequest. - id: - type: integer - description: The numeric ID of the issue or pull request to add - to the project. - required: - - type - - id + oneOf: + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + id: + type: integer + description: The unique ID of the issue or pull request to add + to the project. + required: + - type + - id + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + owner: + type: string + description: The repository owner login. + repo: + type: string + description: The repository name. + number: + type: integer + description: The issue or pull request number. + required: + - type + - owner + - repo + - number examples: - issue: + issue-with-id: + summary: Add issue by database ID value: type: Issue id: 3 - pull_request: + pull_request-with-id: + summary: Add pull request by database ID value: type: PullRequest id: 3 + issue-with-nwo: + summary: Add issue by repository and number + value: + type: Issue + owner: octocat + repo: hello-world + number: 42 + pull_request-with-nwo: + summary: Add pull request by repository and number + value: + type: PullRequest + owner: octocat + repo: hello-world + number: 123 responses: '201': description: Response @@ -101882,6 +101927,8 @@ paths: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: [] organization: login: github id: 1 @@ -101918,6 +101965,10 @@ paths: state: pending role: admin organization_url: https://api.github.com/orgs/invitocat + direct_membership: false + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -101990,6 +102041,10 @@ paths: state: pending role: admin organization_url: https://api.github.com/orgs/invitocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -102073,6 +102128,10 @@ paths: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -106431,35 +106490,76 @@ paths: - *263 requestBody: required: true - description: Details of the item to add to the project. + description: Details of the item to add to the project. You can specify either + the database ID or the repository owner, name, and issue/PR number. content: application/json: schema: - type: object - properties: - type: - type: string - enum: - - Issue - - PullRequest - description: The type of item to add to the project. Must be either - Issue or PullRequest. - id: - type: integer - description: The numeric ID of the issue or pull request to add - to the project. - required: - - type - - id + oneOf: + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + id: + type: integer + description: The unique ID of the issue or pull request to add + to the project. + required: + - type + - id + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + owner: + type: string + description: The repository owner login. + repo: + type: string + description: The repository name. + number: + type: integer + description: The issue or pull request number. + required: + - type + - owner + - repo + - number examples: - issue: + issue-with-id: + summary: Add issue by database ID value: type: Issue id: 3 - pull_request: + pull_request-with-id: + summary: Add pull request by database ID value: type: PullRequest id: 3 + issue-with-nwo: + summary: Add issue by repository and number + value: + type: Issue + owner: octocat + repo: hello-world + number: 42 + pull_request-with-nwo: + summary: Add pull request by repository and number + value: + type: PullRequest + owner: octocat + repo: hello-world + number: 123 responses: '201': description: Response diff --git a/descriptions/api.github.com/dereferenced/api.github.com.deref.json b/descriptions/api.github.com/dereferenced/api.github.com.deref.json index 532b02d6b..3b585b29c 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.deref.json +++ b/descriptions/api.github.com/dereferenced/api.github.com.deref.json @@ -133145,6 +133145,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -133588,6 +133593,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -159720,42 +159730,97 @@ ], "requestBody": { "required": true, - "description": "Details of the item to add to the project.", + "description": "Details of the item to add to the project. You can specify either the database ID or the repository owner, name, and issue/PR number.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Issue", - "PullRequest" - ], - "description": "The type of item to add to the project. Must be either Issue or PullRequest." + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "id": { + "type": "integer", + "description": "The unique ID of the issue or pull request to add to the project." + } + }, + "required": [ + "type", + "id" + ] }, - "id": { - "type": "integer", - "description": "The numeric ID of the issue or pull request to add to the project." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "owner": { + "type": "string", + "description": "The repository owner login." + }, + "repo": { + "type": "string", + "description": "The repository name." + }, + "number": { + "type": "integer", + "description": "The issue or pull request number." + } + }, + "required": [ + "type", + "owner", + "repo", + "number" + ] } - }, - "required": [ - "type", - "id" ] }, "examples": { - "issue": { + "issue-with-id": { + "summary": "Add issue by database ID", "value": { "type": "Issue", "id": 3 } }, - "pull_request": { + "pull_request-with-id": { + "summary": "Add pull request by database ID", "value": { "type": "PullRequest", "id": 3 } + }, + "issue-with-nwo": { + "summary": "Add issue by repository and number", + "value": { + "type": "Issue", + "owner": "octocat", + "repo": "hello-world", + "number": 42 + } + }, + "pull_request-with-nwo": { + "summary": "Add pull request by repository and number", + "value": { + "type": "PullRequest", + "owner": "octocat", + "repo": "hello-world", + "number": 123 + } } } } @@ -569239,6 +569304,8 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [], "organization": { "login": "github", "id": 1, @@ -569279,6 +569346,11 @@ "state": "pending", "role": "admin", "organization_url": "https://api.github.com/orgs/invitocat", + "direct_membership": false, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -569766,6 +569838,11 @@ "state": "pending", "role": "admin", "organization_url": "https://api.github.com/orgs/invitocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -570199,6 +570276,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -636924,42 +637006,97 @@ ], "requestBody": { "required": true, - "description": "Details of the item to add to the project.", + "description": "Details of the item to add to the project. You can specify either the database ID or the repository owner, name, and issue/PR number.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Issue", - "PullRequest" - ], - "description": "The type of item to add to the project. Must be either Issue or PullRequest." + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "id": { + "type": "integer", + "description": "The unique ID of the issue or pull request to add to the project." + } + }, + "required": [ + "type", + "id" + ] }, - "id": { - "type": "integer", - "description": "The numeric ID of the issue or pull request to add to the project." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "owner": { + "type": "string", + "description": "The repository owner login." + }, + "repo": { + "type": "string", + "description": "The repository name." + }, + "number": { + "type": "integer", + "description": "The issue or pull request number." + } + }, + "required": [ + "type", + "owner", + "repo", + "number" + ] } - }, - "required": [ - "type", - "id" ] }, "examples": { - "issue": { + "issue-with-id": { + "summary": "Add issue by database ID", "value": { "type": "Issue", "id": 3 } }, - "pull_request": { + "pull_request-with-id": { + "summary": "Add pull request by database ID", "value": { "type": "PullRequest", "id": 3 } + }, + "issue-with-nwo": { + "summary": "Add issue by repository and number", + "value": { + "type": "Issue", + "owner": "octocat", + "repo": "hello-world", + "number": 42 + } + }, + "pull_request-with-nwo": { + "summary": "Add pull request by repository and number", + "value": { + "type": "PullRequest", + "owner": "octocat", + "repo": "hello-world", + "number": 123 + } } } } diff --git a/descriptions/api.github.com/dereferenced/api.github.com.deref.yaml b/descriptions/api.github.com/dereferenced/api.github.com.deref.yaml index c4d1394e5..ed8839170 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.deref.yaml +++ b/descriptions/api.github.com/dereferenced/api.github.com.deref.yaml @@ -33792,6 +33792,10 @@ paths: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -39730,35 +39734,76 @@ paths: - *263 requestBody: required: true - description: Details of the item to add to the project. + description: Details of the item to add to the project. You can specify either + the database ID or the repository owner, name, and issue/PR number. content: application/json: schema: - type: object - properties: - type: - type: string - enum: - - Issue - - PullRequest - description: The type of item to add to the project. Must be either - Issue or PullRequest. - id: - type: integer - description: The numeric ID of the issue or pull request to add - to the project. - required: - - type - - id + oneOf: + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + id: + type: integer + description: The unique ID of the issue or pull request to add + to the project. + required: + - type + - id + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + owner: + type: string + description: The repository owner login. + repo: + type: string + description: The repository name. + number: + type: integer + description: The issue or pull request number. + required: + - type + - owner + - repo + - number examples: - issue: + issue-with-id: + summary: Add issue by database ID value: type: Issue id: 3 - pull_request: + pull_request-with-id: + summary: Add pull request by database ID value: type: PullRequest id: 3 + issue-with-nwo: + summary: Add issue by repository and number + value: + type: Issue + owner: octocat + repo: hello-world + number: 42 + pull_request-with-nwo: + summary: Add pull request by repository and number + value: + type: PullRequest + owner: octocat + repo: hello-world + number: 123 responses: '201': description: Response @@ -101882,6 +101927,8 @@ paths: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: [] organization: login: github id: 1 @@ -101918,6 +101965,10 @@ paths: state: pending role: admin organization_url: https://api.github.com/orgs/invitocat + direct_membership: false + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -101990,6 +102041,10 @@ paths: state: pending role: admin organization_url: https://api.github.com/orgs/invitocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -102073,6 +102128,10 @@ paths: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -106431,35 +106490,76 @@ paths: - *263 requestBody: required: true - description: Details of the item to add to the project. + description: Details of the item to add to the project. You can specify either + the database ID or the repository owner, name, and issue/PR number. content: application/json: schema: - type: object - properties: - type: - type: string - enum: - - Issue - - PullRequest - description: The type of item to add to the project. Must be either - Issue or PullRequest. - id: - type: integer - description: The numeric ID of the issue or pull request to add - to the project. - required: - - type - - id + oneOf: + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + id: + type: integer + description: The unique ID of the issue or pull request to add + to the project. + required: + - type + - id + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + owner: + type: string + description: The repository owner login. + repo: + type: string + description: The repository name. + number: + type: integer + description: The issue or pull request number. + required: + - type + - owner + - repo + - number examples: - issue: + issue-with-id: + summary: Add issue by database ID value: type: Issue id: 3 - pull_request: + pull_request-with-id: + summary: Add pull request by database ID value: type: PullRequest id: 3 + issue-with-nwo: + summary: Add issue by repository and number + value: + type: Issue + owner: octocat + repo: hello-world + number: 42 + pull_request-with-nwo: + summary: Add pull request by repository and number + value: + type: PullRequest + owner: octocat + repo: hello-world + number: 123 responses: '201': description: Response diff --git a/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json b/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json index 023df6d68..f98a62623 100644 --- a/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json +++ b/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json @@ -183133,6 +183133,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -183576,6 +183581,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -210857,42 +210867,97 @@ ], "requestBody": { "required": true, - "description": "Details of the item to add to the project.", + "description": "Details of the item to add to the project. You can specify either the database ID or the repository owner, name, and issue/PR number.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Issue", - "PullRequest" - ], - "description": "The type of item to add to the project. Must be either Issue or PullRequest." + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "id": { + "type": "integer", + "description": "The unique ID of the issue or pull request to add to the project." + } + }, + "required": [ + "type", + "id" + ] }, - "id": { - "type": "integer", - "description": "The numeric ID of the issue or pull request to add to the project." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "owner": { + "type": "string", + "description": "The repository owner login." + }, + "repo": { + "type": "string", + "description": "The repository name." + }, + "number": { + "type": "integer", + "description": "The issue or pull request number." + } + }, + "required": [ + "type", + "owner", + "repo", + "number" + ] } - }, - "required": [ - "type", - "id" ] }, "examples": { - "issue": { + "issue-with-id": { + "summary": "Add issue by database ID", "value": { "type": "Issue", "id": 3 } }, - "pull_request": { + "pull_request-with-id": { + "summary": "Add pull request by database ID", "value": { "type": "PullRequest", "id": 3 } + }, + "issue-with-nwo": { + "summary": "Add issue by repository and number", + "value": { + "type": "Issue", + "owner": "octocat", + "repo": "hello-world", + "number": 42 + } + }, + "pull_request-with-nwo": { + "summary": "Add pull request by repository and number", + "value": { + "type": "PullRequest", + "owner": "octocat", + "repo": "hello-world", + "number": 123 + } } } } @@ -638606,6 +638671,8 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [], "organization": { "login": "github", "id": 1, @@ -638646,6 +638713,11 @@ "state": "pending", "role": "admin", "organization_url": "https://api.github.com/orgs/invitocat", + "direct_membership": false, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -639133,6 +639205,11 @@ "state": "pending", "role": "admin", "organization_url": "https://api.github.com/orgs/invitocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -639566,6 +639643,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -706415,42 +706497,97 @@ ], "requestBody": { "required": true, - "description": "Details of the item to add to the project.", + "description": "Details of the item to add to the project. You can specify either the database ID or the repository owner, name, and issue/PR number.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Issue", - "PullRequest" - ], - "description": "The type of item to add to the project. Must be either Issue or PullRequest." + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "id": { + "type": "integer", + "description": "The unique ID of the issue or pull request to add to the project." + } + }, + "required": [ + "type", + "id" + ] }, - "id": { - "type": "integer", - "description": "The numeric ID of the issue or pull request to add to the project." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "owner": { + "type": "string", + "description": "The repository owner login." + }, + "repo": { + "type": "string", + "description": "The repository name." + }, + "number": { + "type": "integer", + "description": "The issue or pull request number." + } + }, + "required": [ + "type", + "owner", + "repo", + "number" + ] } - }, - "required": [ - "type", - "id" ] }, "examples": { - "issue": { + "issue-with-id": { + "summary": "Add issue by database ID", "value": { "type": "Issue", "id": 3 } }, - "pull_request": { + "pull_request-with-id": { + "summary": "Add pull request by database ID", "value": { "type": "PullRequest", "id": 3 } + }, + "issue-with-nwo": { + "summary": "Add issue by repository and number", + "value": { + "type": "Issue", + "owner": "octocat", + "repo": "hello-world", + "number": 42 + } + }, + "pull_request-with-nwo": { + "summary": "Add pull request by repository and number", + "value": { + "type": "PullRequest", + "owner": "octocat", + "repo": "hello-world", + "number": 123 + } } } } diff --git a/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.yaml b/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.yaml index 88b4f1266..8083f5d1e 100644 --- a/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.yaml +++ b/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.yaml @@ -47441,6 +47441,10 @@ paths: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -53666,35 +53670,76 @@ paths: - *405 requestBody: required: true - description: Details of the item to add to the project. + description: Details of the item to add to the project. You can specify either + the database ID or the repository owner, name, and issue/PR number. content: application/json: schema: - type: object - properties: - type: - type: string - enum: - - Issue - - PullRequest - description: The type of item to add to the project. Must be either - Issue or PullRequest. - id: - type: integer - description: The numeric ID of the issue or pull request to add - to the project. - required: - - type - - id + oneOf: + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + id: + type: integer + description: The unique ID of the issue or pull request to add + to the project. + required: + - type + - id + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + owner: + type: string + description: The repository owner login. + repo: + type: string + description: The repository name. + number: + type: integer + description: The issue or pull request number. + required: + - type + - owner + - repo + - number examples: - issue: + issue-with-id: + summary: Add issue by database ID value: type: Issue id: 3 - pull_request: + pull_request-with-id: + summary: Add pull request by database ID value: type: PullRequest id: 3 + issue-with-nwo: + summary: Add issue by repository and number + value: + type: Issue + owner: octocat + repo: hello-world + number: 42 + pull_request-with-nwo: + summary: Add pull request by repository and number + value: + type: PullRequest + owner: octocat + repo: hello-world + number: 123 responses: '201': description: Response @@ -117258,6 +117303,8 @@ paths: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: [] organization: login: github id: 1 @@ -117294,6 +117341,10 @@ paths: state: pending role: admin organization_url: https://api.github.com/orgs/invitocat + direct_membership: false + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -117366,6 +117417,10 @@ paths: state: pending role: admin organization_url: https://api.github.com/orgs/invitocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -117449,6 +117504,10 @@ paths: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -121807,35 +121866,76 @@ paths: - *405 requestBody: required: true - description: Details of the item to add to the project. + description: Details of the item to add to the project. You can specify either + the database ID or the repository owner, name, and issue/PR number. content: application/json: schema: - type: object - properties: - type: - type: string - enum: - - Issue - - PullRequest - description: The type of item to add to the project. Must be either - Issue or PullRequest. - id: - type: integer - description: The numeric ID of the issue or pull request to add - to the project. - required: - - type - - id + oneOf: + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + id: + type: integer + description: The unique ID of the issue or pull request to add + to the project. + required: + - type + - id + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + owner: + type: string + description: The repository owner login. + repo: + type: string + description: The repository name. + number: + type: integer + description: The issue or pull request number. + required: + - type + - owner + - repo + - number examples: - issue: + issue-with-id: + summary: Add issue by database ID value: type: Issue id: 3 - pull_request: + pull_request-with-id: + summary: Add pull request by database ID value: type: PullRequest id: 3 + issue-with-nwo: + summary: Add issue by repository and number + value: + type: Issue + owner: octocat + repo: hello-world + number: 42 + pull_request-with-nwo: + summary: Add pull request by repository and number + value: + type: PullRequest + owner: octocat + repo: hello-world + number: 123 responses: '201': description: Response diff --git a/descriptions/ghec/dereferenced/ghec.deref.json b/descriptions/ghec/dereferenced/ghec.deref.json index 023df6d68..f98a62623 100644 --- a/descriptions/ghec/dereferenced/ghec.deref.json +++ b/descriptions/ghec/dereferenced/ghec.deref.json @@ -183133,6 +183133,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -183576,6 +183581,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -210857,42 +210867,97 @@ ], "requestBody": { "required": true, - "description": "Details of the item to add to the project.", + "description": "Details of the item to add to the project. You can specify either the database ID or the repository owner, name, and issue/PR number.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Issue", - "PullRequest" - ], - "description": "The type of item to add to the project. Must be either Issue or PullRequest." + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "id": { + "type": "integer", + "description": "The unique ID of the issue or pull request to add to the project." + } + }, + "required": [ + "type", + "id" + ] }, - "id": { - "type": "integer", - "description": "The numeric ID of the issue or pull request to add to the project." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "owner": { + "type": "string", + "description": "The repository owner login." + }, + "repo": { + "type": "string", + "description": "The repository name." + }, + "number": { + "type": "integer", + "description": "The issue or pull request number." + } + }, + "required": [ + "type", + "owner", + "repo", + "number" + ] } - }, - "required": [ - "type", - "id" ] }, "examples": { - "issue": { + "issue-with-id": { + "summary": "Add issue by database ID", "value": { "type": "Issue", "id": 3 } }, - "pull_request": { + "pull_request-with-id": { + "summary": "Add pull request by database ID", "value": { "type": "PullRequest", "id": 3 } + }, + "issue-with-nwo": { + "summary": "Add issue by repository and number", + "value": { + "type": "Issue", + "owner": "octocat", + "repo": "hello-world", + "number": 42 + } + }, + "pull_request-with-nwo": { + "summary": "Add pull request by repository and number", + "value": { + "type": "PullRequest", + "owner": "octocat", + "repo": "hello-world", + "number": 123 + } } } } @@ -638606,6 +638671,8 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [], "organization": { "login": "github", "id": 1, @@ -638646,6 +638713,11 @@ "state": "pending", "role": "admin", "organization_url": "https://api.github.com/orgs/invitocat", + "direct_membership": false, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -639133,6 +639205,11 @@ "state": "pending", "role": "admin", "organization_url": "https://api.github.com/orgs/invitocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -639566,6 +639643,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -706415,42 +706497,97 @@ ], "requestBody": { "required": true, - "description": "Details of the item to add to the project.", + "description": "Details of the item to add to the project. You can specify either the database ID or the repository owner, name, and issue/PR number.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Issue", - "PullRequest" - ], - "description": "The type of item to add to the project. Must be either Issue or PullRequest." + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "id": { + "type": "integer", + "description": "The unique ID of the issue or pull request to add to the project." + } + }, + "required": [ + "type", + "id" + ] }, - "id": { - "type": "integer", - "description": "The numeric ID of the issue or pull request to add to the project." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "owner": { + "type": "string", + "description": "The repository owner login." + }, + "repo": { + "type": "string", + "description": "The repository name." + }, + "number": { + "type": "integer", + "description": "The issue or pull request number." + } + }, + "required": [ + "type", + "owner", + "repo", + "number" + ] } - }, - "required": [ - "type", - "id" ] }, "examples": { - "issue": { + "issue-with-id": { + "summary": "Add issue by database ID", "value": { "type": "Issue", "id": 3 } }, - "pull_request": { + "pull_request-with-id": { + "summary": "Add pull request by database ID", "value": { "type": "PullRequest", "id": 3 } + }, + "issue-with-nwo": { + "summary": "Add issue by repository and number", + "value": { + "type": "Issue", + "owner": "octocat", + "repo": "hello-world", + "number": 42 + } + }, + "pull_request-with-nwo": { + "summary": "Add pull request by repository and number", + "value": { + "type": "PullRequest", + "owner": "octocat", + "repo": "hello-world", + "number": 123 + } } } } diff --git a/descriptions/ghec/dereferenced/ghec.deref.yaml b/descriptions/ghec/dereferenced/ghec.deref.yaml index 88b4f1266..8083f5d1e 100644 --- a/descriptions/ghec/dereferenced/ghec.deref.yaml +++ b/descriptions/ghec/dereferenced/ghec.deref.yaml @@ -47441,6 +47441,10 @@ paths: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -53666,35 +53670,76 @@ paths: - *405 requestBody: required: true - description: Details of the item to add to the project. + description: Details of the item to add to the project. You can specify either + the database ID or the repository owner, name, and issue/PR number. content: application/json: schema: - type: object - properties: - type: - type: string - enum: - - Issue - - PullRequest - description: The type of item to add to the project. Must be either - Issue or PullRequest. - id: - type: integer - description: The numeric ID of the issue or pull request to add - to the project. - required: - - type - - id + oneOf: + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + id: + type: integer + description: The unique ID of the issue or pull request to add + to the project. + required: + - type + - id + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + owner: + type: string + description: The repository owner login. + repo: + type: string + description: The repository name. + number: + type: integer + description: The issue or pull request number. + required: + - type + - owner + - repo + - number examples: - issue: + issue-with-id: + summary: Add issue by database ID value: type: Issue id: 3 - pull_request: + pull_request-with-id: + summary: Add pull request by database ID value: type: PullRequest id: 3 + issue-with-nwo: + summary: Add issue by repository and number + value: + type: Issue + owner: octocat + repo: hello-world + number: 42 + pull_request-with-nwo: + summary: Add pull request by repository and number + value: + type: PullRequest + owner: octocat + repo: hello-world + number: 123 responses: '201': description: Response @@ -117258,6 +117303,8 @@ paths: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: [] organization: login: github id: 1 @@ -117294,6 +117341,10 @@ paths: state: pending role: admin organization_url: https://api.github.com/orgs/invitocat + direct_membership: false + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -117366,6 +117417,10 @@ paths: state: pending role: admin organization_url: https://api.github.com/orgs/invitocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -117449,6 +117504,10 @@ paths: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -121807,35 +121866,76 @@ paths: - *405 requestBody: required: true - description: Details of the item to add to the project. + description: Details of the item to add to the project. You can specify either + the database ID or the repository owner, name, and issue/PR number. content: application/json: schema: - type: object - properties: - type: - type: string - enum: - - Issue - - PullRequest - description: The type of item to add to the project. Must be either - Issue or PullRequest. - id: - type: integer - description: The numeric ID of the issue or pull request to add - to the project. - required: - - type - - id + oneOf: + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + id: + type: integer + description: The unique ID of the issue or pull request to add + to the project. + required: + - type + - id + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + owner: + type: string + description: The repository owner login. + repo: + type: string + description: The repository name. + number: + type: integer + description: The issue or pull request number. + required: + - type + - owner + - repo + - number examples: - issue: + issue-with-id: + summary: Add issue by database ID value: type: Issue id: 3 - pull_request: + pull_request-with-id: + summary: Add pull request by database ID value: type: PullRequest id: 3 + issue-with-nwo: + summary: Add issue by repository and number + value: + type: Issue + owner: octocat + repo: hello-world + number: 42 + pull_request-with-nwo: + summary: Add pull request by repository and number + value: + type: PullRequest + owner: octocat + repo: hello-world + number: 123 responses: '201': description: Response diff --git a/descriptions/ghec/ghec.2022-11-28.json b/descriptions/ghec/ghec.2022-11-28.json index 9a172fc93..b5019f3e7 100644 --- a/descriptions/ghec/ghec.2022-11-28.json +++ b/descriptions/ghec/ghec.2022-11-28.json @@ -36673,42 +36673,97 @@ ], "requestBody": { "required": true, - "description": "Details of the item to add to the project.", + "description": "Details of the item to add to the project. You can specify either the database ID or the repository owner, name, and issue/PR number.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Issue", - "PullRequest" - ], - "description": "The type of item to add to the project. Must be either Issue or PullRequest." + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "id": { + "type": "integer", + "description": "The unique ID of the issue or pull request to add to the project." + } + }, + "required": [ + "type", + "id" + ] }, - "id": { - "type": "integer", - "description": "The numeric ID of the issue or pull request to add to the project." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "owner": { + "type": "string", + "description": "The repository owner login." + }, + "repo": { + "type": "string", + "description": "The repository name." + }, + "number": { + "type": "integer", + "description": "The issue or pull request number." + } + }, + "required": [ + "type", + "owner", + "repo", + "number" + ] } - }, - "required": [ - "type", - "id" ] }, "examples": { - "issue": { + "issue-with-id": { + "summary": "Add issue by database ID", "value": { "type": "Issue", "id": 3 } }, - "pull_request": { + "pull_request-with-id": { + "summary": "Add pull request by database ID", "value": { "type": "PullRequest", "id": 3 } + }, + "issue-with-nwo": { + "summary": "Add issue by repository and number", + "value": { + "type": "Issue", + "owner": "octocat", + "repo": "hello-world", + "number": 42 + } + }, + "pull_request-with-nwo": { + "summary": "Add pull request by repository and number", + "value": { + "type": "PullRequest", + "owner": "octocat", + "repo": "hello-world", + "number": 123 + } } } } @@ -90932,42 +90987,97 @@ ], "requestBody": { "required": true, - "description": "Details of the item to add to the project.", + "description": "Details of the item to add to the project. You can specify either the database ID or the repository owner, name, and issue/PR number.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Issue", - "PullRequest" - ], - "description": "The type of item to add to the project. Must be either Issue or PullRequest." + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "id": { + "type": "integer", + "description": "The unique ID of the issue or pull request to add to the project." + } + }, + "required": [ + "type", + "id" + ] }, - "id": { - "type": "integer", - "description": "The numeric ID of the issue or pull request to add to the project." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "owner": { + "type": "string", + "description": "The repository owner login." + }, + "repo": { + "type": "string", + "description": "The repository name." + }, + "number": { + "type": "integer", + "description": "The issue or pull request number." + } + }, + "required": [ + "type", + "owner", + "repo", + "number" + ] } - }, - "required": [ - "type", - "id" ] }, "examples": { - "issue": { + "issue-with-id": { + "summary": "Add issue by database ID", "value": { "type": "Issue", "id": 3 } }, - "pull_request": { + "pull_request-with-id": { + "summary": "Add pull request by database ID", "value": { "type": "PullRequest", "id": 3 } + }, + "issue-with-nwo": { + "summary": "Add issue by repository and number", + "value": { + "type": "Issue", + "owner": "octocat", + "repo": "hello-world", + "number": 42 + } + }, + "pull_request-with-nwo": { + "summary": "Add pull request by repository and number", + "value": { + "type": "PullRequest", + "owner": "octocat", + "repo": "hello-world", + "number": 123 + } } } } @@ -311403,6 +311513,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -332315,6 +332430,8 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [], "organization": { "login": "github", "id": 1, @@ -332355,6 +332472,11 @@ "state": "pending", "role": "admin", "organization_url": "https://api.github.com/orgs/invitocat", + "direct_membership": false, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -332398,6 +332520,11 @@ "state": "pending", "role": "admin", "organization_url": "https://api.github.com/orgs/invitocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -332440,6 +332567,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, diff --git a/descriptions/ghec/ghec.2022-11-28.yaml b/descriptions/ghec/ghec.2022-11-28.yaml index d1829e203..9e3dc3bb9 100644 --- a/descriptions/ghec/ghec.2022-11-28.yaml +++ b/descriptions/ghec/ghec.2022-11-28.yaml @@ -26484,35 +26484,76 @@ paths: - "$ref": "#/components/parameters/project-number" requestBody: required: true - description: Details of the item to add to the project. + description: Details of the item to add to the project. You can specify either + the database ID or the repository owner, name, and issue/PR number. content: application/json: schema: - type: object - properties: - type: - type: string - enum: - - Issue - - PullRequest - description: The type of item to add to the project. Must be either - Issue or PullRequest. - id: - type: integer - description: The numeric ID of the issue or pull request to add - to the project. - required: - - type - - id + oneOf: + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + id: + type: integer + description: The unique ID of the issue or pull request to add + to the project. + required: + - type + - id + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + owner: + type: string + description: The repository owner login. + repo: + type: string + description: The repository name. + number: + type: integer + description: The issue or pull request number. + required: + - type + - owner + - repo + - number examples: - issue: + issue-with-id: + summary: Add issue by database ID value: type: Issue id: 3 - pull_request: + pull_request-with-id: + summary: Add pull request by database ID value: type: PullRequest id: 3 + issue-with-nwo: + summary: Add issue by repository and number + value: + type: Issue + owner: octocat + repo: hello-world + number: 42 + pull_request-with-nwo: + summary: Add pull request by repository and number + value: + type: PullRequest + owner: octocat + repo: hello-world + number: 123 responses: '201': description: Response @@ -65744,35 +65785,76 @@ paths: - "$ref": "#/components/parameters/project-number" requestBody: required: true - description: Details of the item to add to the project. + description: Details of the item to add to the project. You can specify either + the database ID or the repository owner, name, and issue/PR number. content: application/json: schema: - type: object - properties: - type: - type: string - enum: - - Issue - - PullRequest - description: The type of item to add to the project. Must be either - Issue or PullRequest. - id: - type: integer - description: The numeric ID of the issue or pull request to add - to the project. - required: - - type - - id + oneOf: + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + id: + type: integer + description: The unique ID of the issue or pull request to add + to the project. + required: + - type + - id + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + owner: + type: string + description: The repository owner login. + repo: + type: string + description: The repository name. + number: + type: integer + description: The issue or pull request number. + required: + - type + - owner + - repo + - number examples: - issue: + issue-with-id: + summary: Add issue by database ID value: type: Issue id: 3 - pull_request: + pull_request-with-id: + summary: Add pull request by database ID value: type: PullRequest id: 3 + issue-with-nwo: + summary: Add issue by repository and number + value: + type: Issue + owner: octocat + repo: hello-world + number: 42 + pull_request-with-nwo: + summary: Add pull request by repository and number + value: + type: PullRequest + owner: octocat + repo: hello-world + number: 123 responses: '201': description: Response @@ -232839,6 +232921,10 @@ components: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -250712,6 +250798,8 @@ components: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: [] organization: login: github id: 1 @@ -250748,6 +250836,10 @@ components: state: pending role: admin organization_url: https://api.github.com/orgs/invitocat + direct_membership: false + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -250786,6 +250878,10 @@ components: state: pending role: admin organization_url: https://api.github.com/orgs/invitocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -250824,6 +250920,10 @@ components: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 diff --git a/descriptions/ghec/ghec.json b/descriptions/ghec/ghec.json index 9a172fc93..b5019f3e7 100644 --- a/descriptions/ghec/ghec.json +++ b/descriptions/ghec/ghec.json @@ -36673,42 +36673,97 @@ ], "requestBody": { "required": true, - "description": "Details of the item to add to the project.", + "description": "Details of the item to add to the project. You can specify either the database ID or the repository owner, name, and issue/PR number.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Issue", - "PullRequest" - ], - "description": "The type of item to add to the project. Must be either Issue or PullRequest." + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "id": { + "type": "integer", + "description": "The unique ID of the issue or pull request to add to the project." + } + }, + "required": [ + "type", + "id" + ] }, - "id": { - "type": "integer", - "description": "The numeric ID of the issue or pull request to add to the project." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "owner": { + "type": "string", + "description": "The repository owner login." + }, + "repo": { + "type": "string", + "description": "The repository name." + }, + "number": { + "type": "integer", + "description": "The issue or pull request number." + } + }, + "required": [ + "type", + "owner", + "repo", + "number" + ] } - }, - "required": [ - "type", - "id" ] }, "examples": { - "issue": { + "issue-with-id": { + "summary": "Add issue by database ID", "value": { "type": "Issue", "id": 3 } }, - "pull_request": { + "pull_request-with-id": { + "summary": "Add pull request by database ID", "value": { "type": "PullRequest", "id": 3 } + }, + "issue-with-nwo": { + "summary": "Add issue by repository and number", + "value": { + "type": "Issue", + "owner": "octocat", + "repo": "hello-world", + "number": 42 + } + }, + "pull_request-with-nwo": { + "summary": "Add pull request by repository and number", + "value": { + "type": "PullRequest", + "owner": "octocat", + "repo": "hello-world", + "number": 123 + } } } } @@ -90932,42 +90987,97 @@ ], "requestBody": { "required": true, - "description": "Details of the item to add to the project.", + "description": "Details of the item to add to the project. You can specify either the database ID or the repository owner, name, and issue/PR number.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Issue", - "PullRequest" - ], - "description": "The type of item to add to the project. Must be either Issue or PullRequest." + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "id": { + "type": "integer", + "description": "The unique ID of the issue or pull request to add to the project." + } + }, + "required": [ + "type", + "id" + ] }, - "id": { - "type": "integer", - "description": "The numeric ID of the issue or pull request to add to the project." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Issue", + "PullRequest" + ], + "description": "The type of item to add to the project. Must be either Issue or PullRequest." + }, + "owner": { + "type": "string", + "description": "The repository owner login." + }, + "repo": { + "type": "string", + "description": "The repository name." + }, + "number": { + "type": "integer", + "description": "The issue or pull request number." + } + }, + "required": [ + "type", + "owner", + "repo", + "number" + ] } - }, - "required": [ - "type", - "id" ] }, "examples": { - "issue": { + "issue-with-id": { + "summary": "Add issue by database ID", "value": { "type": "Issue", "id": 3 } }, - "pull_request": { + "pull_request-with-id": { + "summary": "Add pull request by database ID", "value": { "type": "PullRequest", "id": 3 } + }, + "issue-with-nwo": { + "summary": "Add issue by repository and number", + "value": { + "type": "Issue", + "owner": "octocat", + "repo": "hello-world", + "number": 42 + } + }, + "pull_request-with-nwo": { + "summary": "Add pull request by repository and number", + "value": { + "type": "PullRequest", + "owner": "octocat", + "repo": "hello-world", + "number": 123 + } } } } @@ -311403,6 +311513,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -332315,6 +332430,8 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [], "organization": { "login": "github", "id": 1, @@ -332355,6 +332472,11 @@ "state": "pending", "role": "admin", "organization_url": "https://api.github.com/orgs/invitocat", + "direct_membership": false, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -332398,6 +332520,11 @@ "state": "pending", "role": "admin", "organization_url": "https://api.github.com/orgs/invitocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, @@ -332440,6 +332567,11 @@ "state": "active", "role": "admin", "organization_url": "https://api.github.com/orgs/octocat", + "direct_membership": true, + "enterprise_teams_providing_indirect_membership": [ + "ent:justice-league", + "ent:security-managers" + ], "organization": { "login": "github", "id": 1, diff --git a/descriptions/ghec/ghec.yaml b/descriptions/ghec/ghec.yaml index d1829e203..9e3dc3bb9 100644 --- a/descriptions/ghec/ghec.yaml +++ b/descriptions/ghec/ghec.yaml @@ -26484,35 +26484,76 @@ paths: - "$ref": "#/components/parameters/project-number" requestBody: required: true - description: Details of the item to add to the project. + description: Details of the item to add to the project. You can specify either + the database ID or the repository owner, name, and issue/PR number. content: application/json: schema: - type: object - properties: - type: - type: string - enum: - - Issue - - PullRequest - description: The type of item to add to the project. Must be either - Issue or PullRequest. - id: - type: integer - description: The numeric ID of the issue or pull request to add - to the project. - required: - - type - - id + oneOf: + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + id: + type: integer + description: The unique ID of the issue or pull request to add + to the project. + required: + - type + - id + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + owner: + type: string + description: The repository owner login. + repo: + type: string + description: The repository name. + number: + type: integer + description: The issue or pull request number. + required: + - type + - owner + - repo + - number examples: - issue: + issue-with-id: + summary: Add issue by database ID value: type: Issue id: 3 - pull_request: + pull_request-with-id: + summary: Add pull request by database ID value: type: PullRequest id: 3 + issue-with-nwo: + summary: Add issue by repository and number + value: + type: Issue + owner: octocat + repo: hello-world + number: 42 + pull_request-with-nwo: + summary: Add pull request by repository and number + value: + type: PullRequest + owner: octocat + repo: hello-world + number: 123 responses: '201': description: Response @@ -65744,35 +65785,76 @@ paths: - "$ref": "#/components/parameters/project-number" requestBody: required: true - description: Details of the item to add to the project. + description: Details of the item to add to the project. You can specify either + the database ID or the repository owner, name, and issue/PR number. content: application/json: schema: - type: object - properties: - type: - type: string - enum: - - Issue - - PullRequest - description: The type of item to add to the project. Must be either - Issue or PullRequest. - id: - type: integer - description: The numeric ID of the issue or pull request to add - to the project. - required: - - type - - id + oneOf: + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + id: + type: integer + description: The unique ID of the issue or pull request to add + to the project. + required: + - type + - id + - type: object + properties: + type: + type: string + enum: + - Issue + - PullRequest + description: The type of item to add to the project. Must be either + Issue or PullRequest. + owner: + type: string + description: The repository owner login. + repo: + type: string + description: The repository name. + number: + type: integer + description: The issue or pull request number. + required: + - type + - owner + - repo + - number examples: - issue: + issue-with-id: + summary: Add issue by database ID value: type: Issue id: 3 - pull_request: + pull_request-with-id: + summary: Add pull request by database ID value: type: PullRequest id: 3 + issue-with-nwo: + summary: Add issue by repository and number + value: + type: Issue + owner: octocat + repo: hello-world + number: 42 + pull_request-with-nwo: + summary: Add pull request by repository and number + value: + type: PullRequest + owner: octocat + repo: hello-world + number: 123 responses: '201': description: Response @@ -232839,6 +232921,10 @@ components: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -250712,6 +250798,8 @@ components: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: [] organization: login: github id: 1 @@ -250748,6 +250836,10 @@ components: state: pending role: admin organization_url: https://api.github.com/orgs/invitocat + direct_membership: false + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -250786,6 +250878,10 @@ components: state: pending role: admin organization_url: https://api.github.com/orgs/invitocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1 @@ -250824,6 +250920,10 @@ components: state: active role: admin organization_url: https://api.github.com/orgs/octocat + direct_membership: true + enterprise_teams_providing_indirect_membership: + - ent:justice-league + - ent:security-managers organization: login: github id: 1