Skip to content

Commit

Permalink
Add github action to assign maintainers to PRs (#983)
Browse files Browse the repository at this point in the history
* Add github action to assign maintainers to PRs
  • Loading branch information
MarcelMue committed Nov 25, 2022
1 parent ed9b4f6 commit d17a102
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/auto-assignees.yaml
@@ -0,0 +1,31 @@
# This assigns a PR to its author
addAssignees: true

addReviewers: false

reviewers:
- holyhope
- sguyennet
- jMonsinjon
- steven-zou
- mhurtrel
- heww
- bitsf
- wangcanfengxs
- Ghostbaby
- soulseen
- chlins
- XavierDuthil
- cndoit18
- lubronzhan
- yxxhero
- wy65701436

options:
ignore_draft: true
ignored_keywords:
- WIP
- wip
- DO NOT MERGE
enable_group_assignment: true
number_of_reviewers: 2
17 changes: 17 additions & 0 deletions .github/workflows/auto-assign-prs.yaml
@@ -0,0 +1,17 @@
name: "Auto Assign"

# pull_request_target means that this will run on pull requests, but in
# the context of the base repo. This should mean PRs from forks are supported.
on:
pull_request_target:
types: [opened, reopened, ready_for_review]

jobs:
# Automatically assigns reviewers and owner
add-reviews:
runs-on: ubuntu-latest
steps:
- name: Set the author of a PR as the assignee
uses: kentaro-m/auto-assign-action@v1.2.4
with:
configuration-path: ".github/auto-assignees.yaml"

0 comments on commit d17a102

Please sign in to comment.