Skip to content

Commit

Permalink
ci: pr に assignees を自動付与 (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinari321 authored Dec 30, 2022
1 parent eeb3245 commit d4b6f3f
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
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

# レビュアーのリスト
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'

0 comments on commit d4b6f3f

Please sign in to comment.