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

Add auto-assignee for new PRs #17753

Merged
merged 4 commits into from
Nov 16, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
24 changes: 24 additions & 0 deletions .github/auto-assignees.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
# This assigns a PR to its author
addAssignees: true

addReviewers: false

reviewers:
- wy65701436
- Vad1mo
- OrlinVasilev
- stonezdj
- chlins
- zyyw
- MinerYang
- AllForNothing

options:
ignore_draft: true
ignored_keywords:
- WIP
- wip
- DO NOT MERGE
enable_group_assignment: true
number_of_reviewers: 3
18 changes: 18 additions & 0 deletions .github/workflows/auto_assign_prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
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/[email protected]
with:
configuration-path: ".github/auto-assignees.yml"