Skip to content

Commit

Permalink
feat: POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve (req…
Browse files Browse the repository at this point in the history
…uires `actions:write` permission) & `PATCH /user` (requires `profile:write` permission) (#60)
  • Loading branch information
octokitbot authored May 11, 2021
1 parent da14e54 commit 4953ab5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions generated/api.github.com.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"write": [
"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}",
"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs",
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve",
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel",
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"
]
Expand Down Expand Up @@ -595,6 +596,11 @@
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"
]
},
"profile": {
"url": "https://docs.github.com/en/free-pro-team@latest/rest/reference/permissions-required-for-github-apps/#permission-on-profile",
"read": [],
"write": ["PATCH /user"]
},
"repository_hooks": {
"url": "https://docs.github.com/en/free-pro-team@latest/rest/reference/permissions-required-for-github-apps/#permission-on-repository-hooks",
"read": [
Expand Down Expand Up @@ -948,6 +954,9 @@
"/repos/{owner}/{repo}/actions/runs/{run_id}": {
"GET": { "permission": "contents", "access": "read" }
},
"/repos/{owner}/{repo}/actions/runs/{run_id}/approve": {
"POST": { "permission": "actions", "access": "write" }
},
"/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts": {
"GET": { "permission": "contents", "access": "read" }
},
Expand Down Expand Up @@ -1638,6 +1647,7 @@
"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals": {
"PUT": { "permission": "pull_requests", "access": "write" }
},
"/user": { "PATCH": { "permission": "profile", "access": "write" } },
"/repos/{owner}/{repo}/hooks": {
"GET": { "permission": "repository_hooks", "access": "read" },
"POST": { "permission": "repository_hooks", "access": "write" }
Expand Down

0 comments on commit 4953ab5

Please sign in to comment.