Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: setup auto pr reviews #415

Merged
merged 3 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/pr-review-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
reviewers:

# Default reviewers
defaults:
- JamsRepos
- PhantomMantis
- MrDynamo

# Group definitions
groups:
maintainers:
- JamsRepos
- PhantomMantis
- MrDynamo
# contributors:
# #Additional users to review can go here

# per_author:
# contributors:
# - maintainers

options:
ignore_draft: true
ignored_keywords:
- NO REVIEW



######
#
# https://github.com/marketplace/actions/auto-request-review
#
######
31 changes: 31 additions & 0 deletions .github/workflows/pr-review-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Auto Request Review

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

jobs:
auto-request-review:
name: Request Reviews on Pull Request
runs-on: ubuntu-latest
steps:
- name: Get GitHub App Token
id: gh_app
uses: getsentry/action-github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Request reviewe
uses: necojackarc/auto-request-review@v0.13.0
with:
token: ${{ steps.gh_app.outputs.token }}
config: .github/pr-review-config.yml # Config file location override
# Look for config locally during run instead of in repo.
# For instance, if you'd like to use a config file stored in external storage,
# you can fetch it before you run this action, then let this action pick it up with `use_local: true`.
# This defaults to false if not specified.
# See https://github.com/necojackarc/auto-request-review/issues/76 for more details.
#use_local: true