Skip to content

Commit

Permalink
Use necojackarc/auto-request-review action to request reviews
Browse files Browse the repository at this point in the history
CODEOWNERS only allows requesting reviews from users/teams with owner
permission on the repo

Use this action which should not require the reviewers github team to
have owner permissions

Signed-off-by: Sunjay Bhatia <[email protected]>
  • Loading branch information
sunjayBhatia committed Oct 25, 2023
1 parent 6917d85 commit 312451d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/reviewers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
reviewers:
defaults:
- team:projectcontour/maintainers
- team:projectcontour/reviewers

options:
ignore_draft: true
number_of_reviewers: 2
14 changes: 14 additions & 0 deletions .github/workflows/request-reviews.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Request Reviews

on:
pull_request:
types: [opened, ready_for_review, reopened]

jobs:
request-reviews:
runs-on: ubuntu-latest
steps:
- uses: necojackarc/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
config: .github/reviewers.yaml

0 comments on commit 312451d

Please sign in to comment.