Skip to content

Commit 5cfede3

Browse files
build: set up post approval changes commit action (#1677)
This action will enforce that all pull requests receive an approval from at least one googler on the final commit for the pull request. Historically, we have allowed all post approval changes regardless of authorship. Moving forward, with this change, we will only allow known googlers to perform post approval changes. When a post approval change occurs by a non-googler, the action will automatically rerequest a review from the latest googler who provided an approval on the change.
1 parent cfc2c02 commit 5cfede3

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/dev-infra.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: DevInfra
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize, reopened]
6+
7+
# Declare default permissions as read only.
8+
permissions: read-all
9+
10+
jobs:
11+
labels:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
15+
- uses: angular/dev-infra/github-actions/commit-message-based-labels@2a04da0754b050fb17d6cfc4a4b4fa8b5575ea86
16+
with:
17+
angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }}
18+
post_approval_changes:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
22+
- uses: angular/dev-infra/github-actions/post-approval-changes@2a04da0754b050fb17d6cfc4a4b4fa8b5575ea86
23+
with:
24+
angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }}

0 commit comments

Comments
 (0)