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: pr に assignees と reviewers を自動付与 #65

Merged
merged 1 commit into from
Dec 30, 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
19 changes: 19 additions & 0 deletions .github/assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
# レビュアーとアサイン(担当者)の設定
#
# actions/auto-assign-action 用
#
# GitHub
# - https://github.com/marketplace/actions/auto-assign-action
#
---

# アサインを追加
addAssignees: author

# レビュアーを追加
addReviewers: true

# レビュアーのリスト
sunakan marked this conversation as resolved.
Show resolved Hide resolved
reviewGroups:
- sunabak0/akiyadego
30 changes: 30 additions & 0 deletions .github/workflows/assign-reviewers-assignees.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Assign PR Reviewers and Assignees

#
# 'on' にしている理由
# yamllintで怒られるため
#
# 参考: https://github.com/adrienverge/yamllint/issues/430
#
'on':
pull_request:
types: [opened, ready_for_review]
branches-ignore:
- 'renovate/**'

jobs:
assign-reviewers-assignees:
#
# PR 元が renovate 起因の場合、 job skip
# (renovate 起因の場合、ブランチ名は renovate/**)
#
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: PR にレビュアーとアサインを追加
uses: kentaro-m/auto-assign-action@v1.2.4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: '.github/assign.yml'