diff options
| author | Takashi Kokubun <takashi.kokubun@shopify.com> | 2025-11-09 07:16:42 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-09 07:16:42 -0800 |
| commit | a7a4bb93fc37b3d4ad5a7b2147c9adf952928342 (patch) | |
| tree | 52961ebc74c099487a4ece730ce79eaabc72def7 /.github | |
| parent | 4fe0342a860bc3aceb5f51707732545f83a0ac35 (diff) | |
Automatically review default-gem pull requests (#15116)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/auto_review_pr.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/auto_review_pr.yml b/.github/workflows/auto_review_pr.yml new file mode 100644 index 0000000000..c8095dfd8e --- /dev/null +++ b/.github/workflows/auto_review_pr.yml @@ -0,0 +1,33 @@ +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@v4 + + - uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.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 }} |
