Skip to content

Commit

Permalink
feat: add new public beta APIs for creating, reading, updating and de…
Browse files Browse the repository at this point in the history
…leting custom repo roles and return additional attributes on custom repo roles in existing APIs (#241)

WIP
  • Loading branch information
octokitbot committed Sep 7, 2022
1 parent caadd4b commit 612a9cc
Show file tree
Hide file tree
Showing 21 changed files with 1,119 additions and 127 deletions.
532 changes: 508 additions & 24 deletions cache/api.github.com.json

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions cache/ghes-3.2.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "7.9.1",
"version": "7.10.0",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -13884,8 +13884,9 @@
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
"default": false
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.",
"default": false,
"deprecated": true
},
"squash_merge_commit_title": {
"type": "string",
Expand Down Expand Up @@ -18298,8 +18299,9 @@
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
"default": false
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.",
"default": false,
"deprecated": true
},
"squash_merge_commit_title": {
"type": "string",
Expand Down Expand Up @@ -20633,7 +20635,7 @@
},
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": {
"get": {
"summary": "List workflow runs",
"summary": "List workflow runs for a workflow",
"description": "List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/enterprise-server@3.2/rest/overview/resources-in-the-rest-api#parameters).\n\nAnyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope.",
"tags": [
"actions"
Expand Down Expand Up @@ -27623,7 +27625,7 @@
},
"sha": {
"type": "string",
"description": "The blob SHA of the file being replaced."
"description": "The blob SHA of the file being deleted."
},
"branch": {
"type": "string",
Expand Down
16 changes: 9 additions & 7 deletions cache/ghes-3.3.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "7.9.1",
"version": "7.10.0",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -13799,8 +13799,9 @@
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
"default": false
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.",
"default": false,
"deprecated": true
},
"squash_merge_commit_title": {
"type": "string",
Expand Down Expand Up @@ -18013,8 +18014,9 @@
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
"default": false
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.",
"default": false,
"deprecated": true
},
"squash_merge_commit_title": {
"type": "string",
Expand Down Expand Up @@ -20295,7 +20297,7 @@
},
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": {
"get": {
"summary": "List workflow runs",
"summary": "List workflow runs for a workflow",
"description": "List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/enterprise-server@3.3/rest/overview/resources-in-the-rest-api#parameters).\n\nAnyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope.",
"tags": [
"actions"
Expand Down Expand Up @@ -27496,7 +27498,7 @@
},
"sha": {
"type": "string",
"description": "The blob SHA of the file being replaced."
"description": "The blob SHA of the file being deleted."
},
"branch": {
"type": "string",
Expand Down
20 changes: 11 additions & 9 deletions cache/ghes-3.4.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "7.9.1",
"version": "7.10.0",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -9445,7 +9445,7 @@
},
"examples": {
"default": {
"$ref": "#/components/examples/organization-custom-repository-role-example-old"
"$ref": "#/components/examples/organization-custom-repository-role-example"
}
}
}
Expand Down Expand Up @@ -15079,8 +15079,9 @@
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
"default": false
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.",
"default": false,
"deprecated": true
},
"squash_merge_commit_title": {
"type": "string",
Expand Down Expand Up @@ -19351,8 +19352,9 @@
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
"default": false
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.",
"default": false,
"deprecated": true
},
"squash_merge_commit_title": {
"type": "string",
Expand Down Expand Up @@ -21919,7 +21921,7 @@
},
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": {
"get": {
"summary": "List workflow runs",
"summary": "List workflow runs for a workflow",
"description": "List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/enterprise-server@3.4/rest/overview/resources-in-the-rest-api#parameters).\n\nAnyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope.",
"tags": [
"actions"
Expand Down Expand Up @@ -29056,7 +29058,7 @@
},
"sha": {
"type": "string",
"description": "The blob SHA of the file being replaced."
"description": "The blob SHA of the file being deleted."
},
"branch": {
"type": "string",
Expand Down Expand Up @@ -81501,7 +81503,7 @@
}
]
},
"organization-custom-repository-role-example-old": {
"organization-custom-repository-role-example": {
"value": {
"total_count": 2,
"custom_roles": [
Expand Down
20 changes: 11 additions & 9 deletions cache/ghes-3.5.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "7.9.1",
"version": "7.10.0",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -9637,7 +9637,7 @@
},
"examples": {
"default": {
"$ref": "#/components/examples/organization-custom-repository-role-example-old"
"$ref": "#/components/examples/organization-custom-repository-role-example"
}
}
}
Expand Down Expand Up @@ -15658,8 +15658,9 @@
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
"default": false
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.",
"default": false,
"deprecated": true
},
"squash_merge_commit_title": {
"type": "string",
Expand Down Expand Up @@ -19908,8 +19909,9 @@
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
"default": false
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.",
"default": false,
"deprecated": true
},
"squash_merge_commit_title": {
"type": "string",
Expand Down Expand Up @@ -23072,7 +23074,7 @@
},
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": {
"get": {
"summary": "List workflow runs",
"summary": "List workflow runs for a workflow",
"description": "List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/enterprise-server@3.5/rest/overview/resources-in-the-rest-api#parameters).\n\nAnyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope.",
"tags": [
"actions"
Expand Down Expand Up @@ -30276,7 +30278,7 @@
},
"sha": {
"type": "string",
"description": "The blob SHA of the file being replaced."
"description": "The blob SHA of the file being deleted."
},
"branch": {
"type": "string",
Expand Down Expand Up @@ -83151,7 +83153,7 @@
}
]
},
"organization-custom-repository-role-example-old": {
"organization-custom-repository-role-example": {
"value": {
"total_count": 2,
"custom_roles": [
Expand Down
Loading

0 comments on commit 612a9cc

Please sign in to comment.