diff --git a/.github/reviewers.yml b/.github/reviewers.yml new file mode 100644 index 000000000..f26581eaa --- /dev/null +++ b/.github/reviewers.yml @@ -0,0 +1,17 @@ +# People listed here only get a review request when a PR touches the path. +# No special permissions are granted. +files: + '.github/**': [lubianat] + 'boilerplate/**': [lubianat] + 'community/**': [lubianat] + 'contributing/**': [lubianat] + 'help-desk/**': [lubianat] + 'images/**': [lubianat] + 'resources/**': [lubianat] + 'specifications/**': [lubianat, jo-mueller] + 'rfc/3/**': [jni] + 'rfc/4/**': [thewtex] + 'rfc/9/**': [jwindhager] + +options: + ignore_draft: true diff --git a/.github/workflows/request-reviewers.yml b/.github/workflows/request-reviewers.yml new file mode 100644 index 000000000..ca5a6b5e9 --- /dev/null +++ b/.github/workflows/request-reviewers.yml @@ -0,0 +1,20 @@ +name: Request Reviewers +on: + pull_request_target: + types: [opened, ready_for_review, reopened] + +permissions: + contents: read + pull-requests: write + +jobs: + request: + # Skip PRs labeled 'infra' and PRs opened by bots + if: ${{ !contains(github.event.pull_request.labels.*.name, 'infra') && !endsWith(github.event.pull_request.user.login, '[bot]') }} + runs-on: ubuntu-latest + name: Request Reviewers + steps: + - uses: necojackarc/auto-request-review@9a4b11888f2d60c79120c5413f13eb63febc2b68 # v0.14.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + config: .github/reviewers.yml