Skip to content

Commit 7300da4

Browse files
committedJul 7, 2023
fix: apply settings to all requested branches
1 parent 2a5cd53 commit 7300da4

File tree

5 files changed

+112
-6
lines changed

5 files changed

+112
-6
lines changed
 

‎.github/settings.yml

+26
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,29 @@ branches:
2424
apps: []
2525
users: []
2626
teams: [ "cli-team" ]
27+
- name: latest
28+
protection:
29+
required_status_checks: null
30+
enforce_admins: true
31+
required_pull_request_reviews:
32+
required_approving_review_count: 1
33+
require_code_owner_reviews: true
34+
require_last_push_approval: true
35+
dismiss_stale_reviews: true
36+
restrictions:
37+
apps: []
38+
users: []
39+
teams: [ "cli-team" ]
40+
- name: release/v*
41+
protection:
42+
required_status_checks: null
43+
enforce_admins: true
44+
required_pull_request_reviews:
45+
required_approving_review_count: 1
46+
require_code_owner_reviews: true
47+
require_last_push_approval: true
48+
dismiss_stale_reviews: true
49+
restrictions:
50+
apps: []
51+
users: []
52+
teams: [ "cli-team" ]

‎.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
let commentId = comments.find(c => c.user.login === 'github-actions[bot]' && c.body.startsWith(body))?.id
7979
8080
body += `Release workflow run: ${workflow.html_url}\n\n#### Force CI to Update This Release\n\n`
81-
body += `This PR will be updated and CI will run for every non-\`chore:\` commit that is pushed to \`main\`. `
81+
body += `This PR will be updated and CI will run for every non-\`chore:\` commit that is pushed to \`${REF_NAME}\`. `
8282
body += `To force CI to update this PR, run this command:\n\n`
8383
body += `\`\`\`\ngh workflow run release.yml -r ${REF_NAME} -R ${owner}/${repo} -f release-pr=${issue_number}\n\`\`\``
8484

‎lib/content/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
let commentId = comments.find(c => c.user.login === 'github-actions[bot]' && c.body.startsWith(body))?.id
5555
5656
body += `Release workflow run: ${workflow.html_url}\n\n#### Force CI to Update This Release\n\n`
57-
body += `This PR will be updated and CI will run for every non-\`chore:\` commit that is pushed to \`{{ defaultBranch }}\`. `
57+
body += `This PR will be updated and CI will run for every non-\`chore:\` commit that is pushed to \`${REF_NAME}\`. `
5858
body += `To force CI to update this PR, run this command:\n\n`
5959
body += `\`\`\`\ngh workflow run release.yml -r ${REF_NAME} -R ${owner}/${repo} -f release-pr=${issue_number}\n\`\`\``
6060

‎lib/content/settings.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ repository:
99
enable_vulnerability_alerts: true
1010

1111
branches:
12-
- name: {{ defaultBranch }}
12+
{{#each branches}}
13+
- name: {{ . }}
1314
protection:
1415
required_status_checks: null
1516
enforce_admins: true
@@ -22,3 +23,4 @@ branches:
2223
apps: []
2324
users: []
2425
teams: ["cli-team"]
26+
{{/each}}

‎tap-snapshots/test/apply/source-snapshots.js.test.cjs

+81-3
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,32 @@ branches:
191191
apps: []
192192
users: []
193193
teams: [ "cli-team" ]
194+
- name: latest
195+
protection:
196+
required_status_checks: null
197+
enforce_admins: true
198+
required_pull_request_reviews:
199+
required_approving_review_count: 1
200+
require_code_owner_reviews: true
201+
require_last_push_approval: true
202+
dismiss_stale_reviews: true
203+
restrictions:
204+
apps: []
205+
users: []
206+
teams: [ "cli-team" ]
207+
- name: release/v*
208+
protection:
209+
required_status_checks: null
210+
enforce_admins: true
211+
required_pull_request_reviews:
212+
required_approving_review_count: 1
213+
require_code_owner_reviews: true
214+
require_last_push_approval: true
215+
dismiss_stale_reviews: true
216+
restrictions:
217+
apps: []
218+
users: []
219+
teams: [ "cli-team" ]
194220
195221
.github/workflows/audit.yml
196222
========================================
@@ -866,7 +892,7 @@ jobs:
866892
let commentId = comments.find(c => c.user.login === 'github-actions[bot]' && c.body.startsWith(body))?.id
867893
868894
body += \`Release workflow run: \${workflow.html_url}/n/n#### Force CI to Update This Release/n/n\`
869-
body += \`This PR will be updated and CI will run for every non-/\`chore:/\` commit that is pushed to /\`main/\`. \`
895+
body += \`This PR will be updated and CI will run for every non-/\`chore:/\` commit that is pushed to /\`\${REF_NAME}/\`. \`
870896
body += \`To force CI to update this PR, run this command:/n/n\`
871897
body += \`/\`/\`/\`/ngh workflow run release.yml -r \${REF_NAME} -R \${owner}/\${repo} -f release-pr=\${issue_number}/n/\`/\`/\`\`
872898
@@ -1630,6 +1656,32 @@ branches:
16301656
apps: []
16311657
users: []
16321658
teams: [ "cli-team" ]
1659+
- name: latest
1660+
protection:
1661+
required_status_checks: null
1662+
enforce_admins: true
1663+
required_pull_request_reviews:
1664+
required_approving_review_count: 1
1665+
require_code_owner_reviews: true
1666+
require_last_push_approval: true
1667+
dismiss_stale_reviews: true
1668+
restrictions:
1669+
apps: []
1670+
users: []
1671+
teams: [ "cli-team" ]
1672+
- name: release/v*
1673+
protection:
1674+
required_status_checks: null
1675+
enforce_admins: true
1676+
required_pull_request_reviews:
1677+
required_approving_review_count: 1
1678+
require_code_owner_reviews: true
1679+
require_last_push_approval: true
1680+
dismiss_stale_reviews: true
1681+
restrictions:
1682+
apps: []
1683+
users: []
1684+
teams: [ "cli-team" ]
16331685
16341686
.github/workflows/audit.yml
16351687
========================================
@@ -2541,7 +2593,7 @@ jobs:
25412593
let commentId = comments.find(c => c.user.login === 'github-actions[bot]' && c.body.startsWith(body))?.id
25422594
25432595
body += \`Release workflow run: \${workflow.html_url}/n/n#### Force CI to Update This Release/n/n\`
2544-
body += \`This PR will be updated and CI will run for every non-/\`chore:/\` commit that is pushed to /\`main/\`. \`
2596+
body += \`This PR will be updated and CI will run for every non-/\`chore:/\` commit that is pushed to /\`\${REF_NAME}/\`. \`
25452597
body += \`To force CI to update this PR, run this command:/n/n\`
25462598
body += \`/\`/\`/\`/ngh workflow run release.yml -r \${REF_NAME} -R \${owner}/\${repo} -f release-pr=\${issue_number}/n/\`/\`/\`\`
25472599
@@ -3347,6 +3399,32 @@ branches:
33473399
apps: []
33483400
users: []
33493401
teams: [ "cli-team" ]
3402+
- name: latest
3403+
protection:
3404+
required_status_checks: null
3405+
enforce_admins: true
3406+
required_pull_request_reviews:
3407+
required_approving_review_count: 1
3408+
require_code_owner_reviews: true
3409+
require_last_push_approval: true
3410+
dismiss_stale_reviews: true
3411+
restrictions:
3412+
apps: []
3413+
users: []
3414+
teams: [ "cli-team" ]
3415+
- name: release/v*
3416+
protection:
3417+
required_status_checks: null
3418+
enforce_admins: true
3419+
required_pull_request_reviews:
3420+
required_approving_review_count: 1
3421+
require_code_owner_reviews: true
3422+
require_last_push_approval: true
3423+
dismiss_stale_reviews: true
3424+
restrictions:
3425+
apps: []
3426+
users: []
3427+
teams: [ "cli-team" ]
33503428
33513429
.github/workflows/ci-a.yml
33523430
========================================
@@ -4056,7 +4134,7 @@ jobs:
40564134
let commentId = comments.find(c => c.user.login === 'github-actions[bot]' && c.body.startsWith(body))?.id
40574135
40584136
body += \`Release workflow run: \${workflow.html_url}/n/n#### Force CI to Update This Release/n/n\`
4059-
body += \`This PR will be updated and CI will run for every non-/\`chore:/\` commit that is pushed to /\`main/\`. \`
4137+
body += \`This PR will be updated and CI will run for every non-/\`chore:/\` commit that is pushed to /\`\${REF_NAME}/\`. \`
40604138
body += \`To force CI to update this PR, run this command:/n/n\`
40614139
body += \`/\`/\`/\`/ngh workflow run release.yml -r \${REF_NAME} -R \${owner}/\${repo} -f release-pr=\${issue_number}/n/\`/\`/\`\`
40624140

0 commit comments

Comments
 (0)
Please sign in to comment.