Skip to content

Commit 612a9cc

Browse files
authored
feat: add new public beta APIs for creating, reading, updating and deleting custom repo roles and return additional attributes on custom repo roles in existing APIs (#241)
WIP
1 parent caadd4b commit 612a9cc

File tree

21 files changed

+1119
-127
lines changed

21 files changed

+1119
-127
lines changed

cache/api.github.com.json

Lines changed: 508 additions & 24 deletions
Large diffs are not rendered by default.

cache/ghes-3.2.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "7.9.1",
4+
"version": "7.10.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": {
@@ -13884,8 +13884,9 @@
1388413884
},
1388513885
"use_squash_pr_title_as_default": {
1388613886
"type": "boolean",
13887-
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
13888-
"default": false
13887+
"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.",
13888+
"default": false,
13889+
"deprecated": true
1388913890
},
1389013891
"squash_merge_commit_title": {
1389113892
"type": "string",
@@ -18298,8 +18299,9 @@
1829818299
},
1829918300
"use_squash_pr_title_as_default": {
1830018301
"type": "boolean",
18301-
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
18302-
"default": false
18302+
"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.",
18303+
"default": false,
18304+
"deprecated": true
1830318305
},
1830418306
"squash_merge_commit_title": {
1830518307
"type": "string",
@@ -20633,7 +20635,7 @@
2063320635
},
2063420636
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": {
2063520637
"get": {
20636-
"summary": "List workflow runs",
20638+
"summary": "List workflow runs for a workflow",
2063720639
"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.",
2063820640
"tags": [
2063920641
"actions"
@@ -27623,7 +27625,7 @@
2762327625
},
2762427626
"sha": {
2762527627
"type": "string",
27626-
"description": "The blob SHA of the file being replaced."
27628+
"description": "The blob SHA of the file being deleted."
2762727629
},
2762827630
"branch": {
2762927631
"type": "string",

cache/ghes-3.3.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "7.9.1",
4+
"version": "7.10.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": {
@@ -13799,8 +13799,9 @@
1379913799
},
1380013800
"use_squash_pr_title_as_default": {
1380113801
"type": "boolean",
13802-
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
13803-
"default": false
13802+
"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.",
13803+
"default": false,
13804+
"deprecated": true
1380413805
},
1380513806
"squash_merge_commit_title": {
1380613807
"type": "string",
@@ -18013,8 +18014,9 @@
1801318014
},
1801418015
"use_squash_pr_title_as_default": {
1801518016
"type": "boolean",
18016-
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
18017-
"default": false
18017+
"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.",
18018+
"default": false,
18019+
"deprecated": true
1801818020
},
1801918021
"squash_merge_commit_title": {
1802018022
"type": "string",
@@ -20295,7 +20297,7 @@
2029520297
},
2029620298
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": {
2029720299
"get": {
20298-
"summary": "List workflow runs",
20300+
"summary": "List workflow runs for a workflow",
2029920301
"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.",
2030020302
"tags": [
2030120303
"actions"
@@ -27496,7 +27498,7 @@
2749627498
},
2749727499
"sha": {
2749827500
"type": "string",
27499-
"description": "The blob SHA of the file being replaced."
27501+
"description": "The blob SHA of the file being deleted."
2750027502
},
2750127503
"branch": {
2750227504
"type": "string",

cache/ghes-3.4.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "7.9.1",
4+
"version": "7.10.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": {
@@ -9445,7 +9445,7 @@
94459445
},
94469446
"examples": {
94479447
"default": {
9448-
"$ref": "#/components/examples/organization-custom-repository-role-example-old"
9448+
"$ref": "#/components/examples/organization-custom-repository-role-example"
94499449
}
94509450
}
94519451
}
@@ -15079,8 +15079,9 @@
1507915079
},
1508015080
"use_squash_pr_title_as_default": {
1508115081
"type": "boolean",
15082-
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
15083-
"default": false
15082+
"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.",
15083+
"default": false,
15084+
"deprecated": true
1508415085
},
1508515086
"squash_merge_commit_title": {
1508615087
"type": "string",
@@ -19351,8 +19352,9 @@
1935119352
},
1935219353
"use_squash_pr_title_as_default": {
1935319354
"type": "boolean",
19354-
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
19355-
"default": false
19355+
"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.",
19356+
"default": false,
19357+
"deprecated": true
1935619358
},
1935719359
"squash_merge_commit_title": {
1935819360
"type": "string",
@@ -21919,7 +21921,7 @@
2191921921
},
2192021922
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": {
2192121923
"get": {
21922-
"summary": "List workflow runs",
21924+
"summary": "List workflow runs for a workflow",
2192321925
"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.",
2192421926
"tags": [
2192521927
"actions"
@@ -29056,7 +29058,7 @@
2905629058
},
2905729059
"sha": {
2905829060
"type": "string",
29059-
"description": "The blob SHA of the file being replaced."
29061+
"description": "The blob SHA of the file being deleted."
2906029062
},
2906129063
"branch": {
2906229064
"type": "string",
@@ -81501,7 +81503,7 @@
8150181503
}
8150281504
]
8150381505
},
81504-
"organization-custom-repository-role-example-old": {
81506+
"organization-custom-repository-role-example": {
8150581507
"value": {
8150681508
"total_count": 2,
8150781509
"custom_roles": [

cache/ghes-3.5.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "7.9.1",
4+
"version": "7.10.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": {
@@ -9637,7 +9637,7 @@
96379637
},
96389638
"examples": {
96399639
"default": {
9640-
"$ref": "#/components/examples/organization-custom-repository-role-example-old"
9640+
"$ref": "#/components/examples/organization-custom-repository-role-example"
96419641
}
96429642
}
96439643
}
@@ -15658,8 +15658,9 @@
1565815658
},
1565915659
"use_squash_pr_title_as_default": {
1566015660
"type": "boolean",
15661-
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
15662-
"default": false
15661+
"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.",
15662+
"default": false,
15663+
"deprecated": true
1566315664
},
1566415665
"squash_merge_commit_title": {
1566515666
"type": "string",
@@ -19908,8 +19909,9 @@
1990819909
},
1990919910
"use_squash_pr_title_as_default": {
1991019911
"type": "boolean",
19911-
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
19912-
"default": false
19912+
"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.",
19913+
"default": false,
19914+
"deprecated": true
1991319915
},
1991419916
"squash_merge_commit_title": {
1991519917
"type": "string",
@@ -23072,7 +23074,7 @@
2307223074
},
2307323075
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": {
2307423076
"get": {
23075-
"summary": "List workflow runs",
23077+
"summary": "List workflow runs for a workflow",
2307623078
"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.",
2307723079
"tags": [
2307823080
"actions"
@@ -30276,7 +30278,7 @@
3027630278
},
3027730279
"sha": {
3027830280
"type": "string",
30279-
"description": "The blob SHA of the file being replaced."
30281+
"description": "The blob SHA of the file being deleted."
3028030282
},
3028130283
"branch": {
3028230284
"type": "string",
@@ -83151,7 +83153,7 @@
8315183153
}
8315283154
]
8315383155
},
83154-
"organization-custom-repository-role-example-old": {
83156+
"organization-custom-repository-role-example": {
8315583157
"value": {
8315683158
"total_count": 2,
8315783159
"custom_roles": [

0 commit comments

Comments
 (0)