Skip to content

Commit

Permalink
Merge pull request #214 from Make-IT-TSUKUBA/add/pr-review
Browse files Browse the repository at this point in the history
Actions が作成した PR を自動でレビューする
  • Loading branch information
inaniwaudon authored Jan 15, 2024
2 parents b9e074a + d3846dc commit 35647d9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pr-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Review PR to update syllabus

on:
pull_request:
branches:
- 'update_*'
types:
- labeled

jobs:
review:
environment: actions
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: >-
github.event.label.name == 'automated-pr' &&
github.event.pull_request.user.login != 'github-actions[bot]'
steps:
- name: Review
uses: hmarr/auto-approve-action@v3
with:
github-token: ${{ secrets.GH_ADMIN_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/update-syllabus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ jobs:
uses: peter-evans/enable-pull-request-automerge@v3
with:
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
github-token: ${{ secrets.GH_ADMIN_TOKEN }}

0 comments on commit 35647d9

Please sign in to comment.