diff --git a/descriptions-next/api.github.com/api.github.com.2022-11-28.json b/descriptions-next/api.github.com/api.github.com.2022-11-28.json index ef8db44d5..4d46245e7 100644 --- a/descriptions-next/api.github.com/api.github.com.2022-11-28.json +++ b/descriptions-next/api.github.com/api.github.com.2022-11-28.json @@ -25374,42 +25374,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 + } } } } @@ -76126,42 +76181,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 + } } } } @@ -296146,6 +296256,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, @@ -316780,6 +316895,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, @@ -316820,6 +316937,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, @@ -316863,6 +316985,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, @@ -316905,6 +317032,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-next/api.github.com/api.github.com.2022-11-28.yaml b/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml index 53642b830..34e459019 100644 --- a/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml +++ b/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml @@ -18351,35 +18351,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 @@ -55095,35 +55136,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 @@ -218585,6 +218667,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 @@ -236314,6 +236400,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 @@ -236350,6 +236438,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 @@ -236388,6 +236480,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 @@ -236426,6 +236522,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-next/api.github.com/api.github.com.json b/descriptions-next/api.github.com/api.github.com.json index ef8db44d5..4d46245e7 100644 --- a/descriptions-next/api.github.com/api.github.com.json +++ b/descriptions-next/api.github.com/api.github.com.json @@ -25374,42 +25374,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 + } } } } @@ -76126,42 +76181,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 + } } } } @@ -296146,6 +296256,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, @@ -316780,6 +316895,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, @@ -316820,6 +316937,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, @@ -316863,6 +316985,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, @@ -316905,6 +317032,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-next/api.github.com/api.github.com.yaml b/descriptions-next/api.github.com/api.github.com.yaml index 53642b830..34e459019 100644 --- a/descriptions-next/api.github.com/api.github.com.yaml +++ b/descriptions-next/api.github.com/api.github.com.yaml @@ -18351,35 +18351,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 @@ -55095,35 +55136,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 @@ -218585,6 +218667,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 @@ -236314,6 +236400,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 @@ -236350,6 +236438,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 @@ -236388,6 +236480,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 @@ -236426,6 +236522,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-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json index 64556caf9..11a00aeb0 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json @@ -153544,6 +153544,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, @@ -154073,6 +154078,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, @@ -184919,42 +184929,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 + } } } } @@ -672391,6 +672456,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, @@ -672431,6 +672498,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, @@ -673010,6 +673082,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, @@ -673529,6 +673606,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, @@ -754481,42 +754563,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-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml index 826506716..de4cff6a1 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml @@ -34743,6 +34743,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 @@ -40789,35 +40793,76 @@ paths: - *251 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 @@ -104176,6 +104221,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 @@ -104212,6 +104259,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 @@ -104284,6 +104335,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 @@ -104367,6 +104422,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 @@ -108755,35 +108814,76 @@ paths: - *251 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-next/api.github.com/dereferenced/api.github.com.deref.json b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json index 64556caf9..11a00aeb0 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json @@ -153544,6 +153544,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, @@ -154073,6 +154078,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, @@ -184919,42 +184929,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 + } } } } @@ -672391,6 +672456,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, @@ -672431,6 +672498,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, @@ -673010,6 +673082,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, @@ -673529,6 +673606,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, @@ -754481,42 +754563,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-next/api.github.com/dereferenced/api.github.com.deref.yaml b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml index 826506716..de4cff6a1 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml @@ -34743,6 +34743,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 @@ -40789,35 +40793,76 @@ paths: - *251 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 @@ -104176,6 +104221,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 @@ -104212,6 +104259,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 @@ -104284,6 +104335,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 @@ -104367,6 +104422,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 @@ -108755,35 +108814,76 @@ paths: - *251 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-next/ghec/dereferenced/ghec.2022-11-28.deref.json b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json index cf37154a8..67e39e154 100644 --- a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json +++ b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json @@ -207272,6 +207272,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, @@ -207801,6 +207806,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, @@ -239930,42 +239940,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 + } } } } @@ -747386,6 +747451,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, @@ -747426,6 +747493,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, @@ -748005,6 +748077,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, @@ -748524,6 +748601,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, @@ -829600,42 +829682,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-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml index 456b8bf1d..b60759a91 100644 --- a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml +++ b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml @@ -48612,6 +48612,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 @@ -54945,35 +54949,76 @@ paths: - *391 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 @@ -119804,6 +119849,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 @@ -119840,6 +119887,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 @@ -119912,6 +119963,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 @@ -119995,6 +120050,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 @@ -124383,35 +124442,76 @@ paths: - *391 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-next/ghec/dereferenced/ghec.deref.json b/descriptions-next/ghec/dereferenced/ghec.deref.json index cf37154a8..67e39e154 100644 --- a/descriptions-next/ghec/dereferenced/ghec.deref.json +++ b/descriptions-next/ghec/dereferenced/ghec.deref.json @@ -207272,6 +207272,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, @@ -207801,6 +207806,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, @@ -239930,42 +239940,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 + } } } } @@ -747386,6 +747451,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, @@ -747426,6 +747493,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, @@ -748005,6 +748077,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, @@ -748524,6 +748601,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, @@ -829600,42 +829682,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-next/ghec/dereferenced/ghec.deref.yaml b/descriptions-next/ghec/dereferenced/ghec.deref.yaml index 456b8bf1d..b60759a91 100644 --- a/descriptions-next/ghec/dereferenced/ghec.deref.yaml +++ b/descriptions-next/ghec/dereferenced/ghec.deref.yaml @@ -48612,6 +48612,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 @@ -54945,35 +54949,76 @@ paths: - *391 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 @@ -119804,6 +119849,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 @@ -119840,6 +119887,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 @@ -119912,6 +119963,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 @@ -119995,6 +120050,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 @@ -124383,35 +124442,76 @@ paths: - *391 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-next/ghec/ghec.2022-11-28.json b/descriptions-next/ghec/ghec.2022-11-28.json index c65c646ae..ffb02c980 100644 --- a/descriptions-next/ghec/ghec.2022-11-28.json +++ b/descriptions-next/ghec/ghec.2022-11-28.json @@ -36833,42 +36833,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 + } } } } @@ -91361,42 +91416,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 + } } } } @@ -320803,6 +320913,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, @@ -341715,6 +341830,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, @@ -341755,6 +341872,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, @@ -341798,6 +341920,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, @@ -341840,6 +341967,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-next/ghec/ghec.2022-11-28.yaml b/descriptions-next/ghec/ghec.2022-11-28.yaml index 76c920543..e9d2267b5 100644 --- a/descriptions-next/ghec/ghec.2022-11-28.yaml +++ b/descriptions-next/ghec/ghec.2022-11-28.yaml @@ -26562,35 +26562,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 @@ -65961,35 +66002,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 @@ -236315,6 +236397,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 @@ -254188,6 +254274,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 @@ -254224,6 +254312,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 @@ -254262,6 +254354,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 @@ -254300,6 +254396,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-next/ghec/ghec.json b/descriptions-next/ghec/ghec.json index c65c646ae..ffb02c980 100644 --- a/descriptions-next/ghec/ghec.json +++ b/descriptions-next/ghec/ghec.json @@ -36833,42 +36833,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 + } } } } @@ -91361,42 +91416,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 + } } } } @@ -320803,6 +320913,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, @@ -341715,6 +341830,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, @@ -341755,6 +341872,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, @@ -341798,6 +341920,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, @@ -341840,6 +341967,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-next/ghec/ghec.yaml b/descriptions-next/ghec/ghec.yaml index 76c920543..e9d2267b5 100644 --- a/descriptions-next/ghec/ghec.yaml +++ b/descriptions-next/ghec/ghec.yaml @@ -26562,35 +26562,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 @@ -65961,35 +66002,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 @@ -236315,6 +236397,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 @@ -254188,6 +254274,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 @@ -254224,6 +254312,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 @@ -254262,6 +254354,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 @@ -254300,6 +254396,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