Skip to content

Commit

Permalink
add CODEOWNERS, automatically manage waiting-for-author/review labels
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Oct 19, 2023
1 parent 3c997e6 commit 799e088
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @rust-lang/docs-rs
14 changes: 14 additions & 0 deletions .github/workflows/on-pr-review-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on:
pull_request_review:
types: [submitted]

jobs:
update-labels:
if: github.event.review.state == 'approved'
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-remove-labels@v1
with:
labels: |
S-waiting-on-author
S-waiting-on-review
15 changes: 15 additions & 0 deletions .github/workflows/on-pr-review-submit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on:
pull_request_review:
types: [submitted]

jobs:
update-labels:
if: github.event.review.state == 'changes_requested'
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: S-waiting-on-author
- uses: actions-ecosystem/action-remove-labels@v1
with:
labels: S-waiting-on-review
5 changes: 4 additions & 1 deletion .github/workflows/tag-new-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
pull_request_target:
branches:
- master
types: [opened, reopened]
types: [opened, reopened, review_requested]

jobs:
update-labels:
Expand All @@ -11,3 +11,6 @@ jobs:
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: S-waiting-on-review
- uses: actions-ecosystem/action-remove-labels@v1
with:
labels: S-waiting-on-author

0 comments on commit 799e088

Please sign in to comment.