Skip to content

Commit f501241

Browse files
committed
add CODEOWNERS, automatically manage waiting-for-author/review labels
1 parent aa69512 commit f501241

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @rust-lang/docs-rs
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
on:
2+
pull_request_review:
3+
types: [submitted]
4+
5+
jobs:
6+
update-labels:
7+
if: github.event.review.state == 'approved'
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions-ecosystem/action-remove-labels@v1
11+
with:
12+
labels: |
13+
S-waiting-on-author
14+
S-waiting-on-review
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
on:
2+
pull_request_review:
3+
types: [submitted]
4+
5+
jobs:
6+
update-labels:
7+
if: github.event.review.state == 'changes_requested'
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions-ecosystem/action-add-labels@v1
11+
with:
12+
labels: S-waiting-on-author
13+
- uses: actions-ecosystem/action-remove-labels@v1
14+
with:
15+
labels: S-waiting-on-review

.github/workflows/tag-new-pr.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ on:
22
pull_request_target:
33
branches:
44
- master
5-
types: [opened, reopened]
5+
types: [opened, reopened, review_requested]
66

77
jobs:
88
update-labels:
@@ -11,3 +11,6 @@ jobs:
1111
- uses: actions-ecosystem/action-add-labels@v1
1212
with:
1313
labels: S-waiting-on-review
14+
- uses: actions-ecosystem/action-remove-labels@v1
15+
with:
16+
labels: S-waiting-on-author

0 commit comments

Comments
 (0)