Skip to content

Commit

Permalink
ci: add add-viewer.yml (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
book000 authored Aug 27, 2023
1 parent 441a93a commit 3663ce5
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/add-viewer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Auto add reviewer

on:
pull_request:
types:
- opened
- reopened
branches:
- main
- master

jobs:
add-reviewer:
runs-on: ubuntu-latest
if: >-
${{
github.actor != 'dependabot[bot]' &&
github.actor != 'renovate[bot]' &&
github.actor != 'github-actions[bot]' &&
github.actor != 'book000'
}}
steps:
- name: Checkout
uses: actions/checkout@master

- name: Add reviewer
run: |
gh pr edit ${{ github.event.pull_request.number }} --add-reviewer book000 || true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3663ce5

Please sign in to comment.