Skip to content

Commit

Permalink
Merge pull request #25085 from github/repo-sync
Browse files Browse the repository at this point in the history
repo sync
  • Loading branch information
Octomerger authored Apr 18, 2023
2 parents 9084e48 + 38c45cb commit 1b90194
Show file tree
Hide file tree
Showing 19 changed files with 16,376 additions and 1,263 deletions.
7 changes: 5 additions & 2 deletions content/rest/deployments/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Deployments
intro: 'Use the REST API to create and delete deploy keys, deployments, and deployment environments.'
intro: >-
Use the REST API to create and delete deploy keys, deployments, and deployment
environments.
allowTitleToDifferFromFilename: true
versions:
fpt: '*'
Expand All @@ -10,10 +12,11 @@ versions:
topics:
- API
children:
- /branch-policies
- /deployments
- /environments
- /protection-rules
- /statuses
- /branch-policies
redirect_from:
- /rest/reference/deployments
autogenerated: rest
Expand Down
14 changes: 14 additions & 0 deletions content/rest/deployments/protection-rules.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: Protection rules
shortTitle: Protection rules
intro: 'Use the REST API to create, configure, and delete deployment protection rules.'
versions:
fpt: '*'
ghec: '*'
topics:
- API
autogenerated: rest
allowTitleToDifferFromFilename: true
---

<!-- Content after this section is automatically generated -->
42 changes: 42 additions & 0 deletions src/github-apps/data/fpt-2022-11-28/server-to-server-rest.json
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,12 @@
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/actions/runs/{run_id}/cancel"
},
{
"slug": "review-custom-deployment-protection-rules-for-a-workflow-run",
"subcategory": "workflow-runs",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"
},
{
"slug": "list-jobs-for-a-workflow-run",
"subcategory": "workflow-jobs",
Expand Down Expand Up @@ -1735,6 +1741,36 @@
"subcategory": "branch-policies",
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
},
{
"slug": "get-all-deployment-protection-rules-for-an-environment",
"subcategory": "protection-rules",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
},
{
"slug": "create-a-custom-deployment-protection-rule-on-an-environment",
"subcategory": "protection-rules",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
},
{
"slug": "list-custom-deployment-rule-integrations-available-for-an-environment",
"subcategory": "protection-rules",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"
},
{
"slug": "get-a-custom-deployment-protection-rule",
"subcategory": "protection-rules",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
},
{
"slug": "disable-a-custom-protection-rule-for-an-environment",
"subcategory": "protection-rules",
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
}
],
"emojis": [
Expand Down Expand Up @@ -3530,6 +3566,12 @@
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/security-advisories"
},
{
"slug": "privately-report-a-security-vulnerability",
"subcategory": "repository-advisories",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/security-advisories/reports"
},
{
"slug": "get-a-repository-security-advisory",
"subcategory": "repository-advisories",
Expand Down
42 changes: 42 additions & 0 deletions src/github-apps/data/ghec-2022-11-28/server-to-server-rest.json
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,12 @@
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/actions/runs/{run_id}/cancel"
},
{
"slug": "review-custom-deployment-protection-rules-for-a-workflow-run",
"subcategory": "workflow-runs",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"
},
{
"slug": "list-jobs-for-a-workflow-run",
"subcategory": "workflow-jobs",
Expand Down Expand Up @@ -1841,6 +1847,36 @@
"subcategory": "branch-policies",
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
},
{
"slug": "get-all-deployment-protection-rules-for-an-environment",
"subcategory": "protection-rules",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
},
{
"slug": "create-a-custom-deployment-protection-rule-on-an-environment",
"subcategory": "protection-rules",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
},
{
"slug": "list-custom-deployment-rule-integrations-available-for-an-environment",
"subcategory": "protection-rules",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"
},
{
"slug": "get-a-custom-deployment-protection-rule",
"subcategory": "protection-rules",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
},
{
"slug": "disable-a-custom-protection-rule-for-an-environment",
"subcategory": "protection-rules",
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
}
],
"emojis": [
Expand Down Expand Up @@ -3764,6 +3800,12 @@
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/security-advisories"
},
{
"slug": "privately-report-a-security-vulnerability",
"subcategory": "repository-advisories",
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/security-advisories/reports"
},
{
"slug": "get-a-repository-security-advisory",
"subcategory": "repository-advisories",
Expand Down
2 changes: 1 addition & 1 deletion src/github-apps/lib/config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"sha": "955d6a6a61c413f2940b977647300f1c609b0ec6"
"sha": "cf133481cb255f2119fe875dcfde3e047d2017b7"
}
7 changes: 7 additions & 0 deletions src/rest/data/client-side-rest-api-redirects.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@
"/rest/actions#list-jobs-for-a-workflow-run-attempt": "/rest/actions/workflow-jobs#list-jobs-for-a-workflow-run-attempt",
"/rest/actions#download-workflow-run-attempt-logs": "/rest/actions/workflow-runs#download-workflow-run-attempt-logs",
"/rest/actions#cancel-a-workflow-run": "/rest/actions/workflow-runs#cancel-a-workflow-run",
"/rest/actions/workflow-runs#review-custom-deployment-protection-rules-for-a-workflow-run": "/rest/actions/workflow-runs#review-custom-deployment-protection-rules-for-a-workflow-run",
"/rest/actions#list-jobs-for-a-workflow-run": "/rest/actions/workflow-jobs#list-jobs-for-a-workflow-run",
"/rest/actions#download-workflow-run-logs": "/rest/actions/workflow-runs#download-workflow-run-logs",
"/rest/actions#delete-workflow-run-logs": "/rest/actions/workflow-runs#delete-workflow-run-logs",
Expand Down Expand Up @@ -654,6 +655,11 @@
"/rest/deployments/branch-policies#get-deployment-branch-policy": "/rest/deployments/branch-policies#get-deployment-branch-policy",
"/rest/deployments/branch-policies#update-deployment-branch-policy": "/rest/deployments/branch-policies#update-deployment-branch-policy",
"/rest/deployments/branch-policies#delete-deployment-branch-policy": "/rest/deployments/branch-policies#delete-deployment-branch-policy",
"/rest/deployments/protection-rules#get-all-deployment-protection-rules": "/rest/deployments/protection-rules#get-all-deployment-protection-rules",
"/rest/deployments#protection-rules": "/rest/deployments/protection-rules",
"/rest/deployments/protection-rules#list-custom-deployment-rule-integrations": "/rest/deployments/protection-rules#list-custom-deployment-rule-integrations",
"/rest/deployments/protection-rules#get-a-deployment-protection-rule": "/rest/deployments/protection-rules#get-a-deployment-protection-rule",
"/rest/deployments/protection-rules#disable-deployment-protection-rule": "/rest/deployments/protection-rules#disable-deployment-protection-rule",
"/rest/activity#list-repository-events": "/rest/activity/events#list-repository-events",
"/rest/repos#list-forks": "/rest/repos/forks#list-forks",
"/rest/repos#forks": "/rest/repos/forks",
Expand Down Expand Up @@ -803,6 +809,7 @@
"/rest/security-advisories/repository-advisories#list-repository-security-advisories": "/rest/security-advisories/repository-advisories#list-repository-security-advisories",
"/rest/security-advisories#repository-advisories": "/rest/security-advisories/repository-advisories",
"/rest/security-advisories/repository-advisories#create-a-repository-security-advisory": "/rest/security-advisories/repository-advisories#create-a-repository-security-advisory",
"/rest/security-advisories/repository-advisories#privately-report-a-security-vulnerability": "/rest/security-advisories/repository-advisories#privately-report-a-security-vulnerability",
"/rest/security-advisories/repository-advisories#get-a-repository-security-advisory": "/rest/security-advisories/repository-advisories#get-a-repository-security-advisory",
"/rest/security-advisories/repository-advisories#update-a-repository-security-advisory": "/rest/security-advisories/repository-advisories#update-a-repository-security-advisory",
"/rest/activity#list-stargazers": "/rest/activity/starring#list-stargazers",
Expand Down
Loading

0 comments on commit 1b90194

Please sign in to comment.