-
Notifications
You must be signed in to change notification settings - Fork 67
35 lines (29 loc) · 925 Bytes
/
auto_review_pr.yml
File metadata and controls
35 lines (29 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Auto Review PR
on:
pull_request_target:
types: [opened, ready_for_review, reopened]
branches: [master]
permissions:
contents: read
jobs:
auto-review-pr:
name: Auto Review PR
runs-on: ubuntu-latest
if: ${{ github.repository == 'ruby/ruby' && github.base_ref == 'master' }}
permissions:
pull-requests: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: ruby/setup-ruby@6ca151fd1bfcfd6fe0c4eb6837eb0584d0134a0c # v1.290.0
with:
ruby-version: '3.4'
bundler: none
- name: Auto Review PR
run: ruby tool/auto_review_pr.rb "$GITHUB_PR_NUMBER"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}