[llvm] [GitHub][workflows] Ask reviewers to merge PRs when author cannot (PR #81142)
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 12 09:49:17 PST 2024
================
@@ -0,0 +1,39 @@
+name: "Prompt reviewers to merge PRs on behalf of authors"
+
+permissions:
+ contents: read
+
+on:
+ pull_request_review:
+ types:
+ - submitted
+
+jobs:
+ merge-on-behalf-information-comment:
+ runs-on: ubuntu-latest
+ permissions:
+ pull-requests: write
+ if: >-
+ (github.repository == 'llvm/llvm-project') &&
+ (github.event.review.state == 'APPROVED')
+ steps:
+ - name: Checkout Automation Script
+ uses: actions/checkout at v4
+ with:
+ sparse-checkout: llvm/utils/git/
+ ref: main
+
+ - name: Setup Automation Script
+ working-directory: ./llvm/utils/git/
+ run: |
+ pip install -r requirements.txt
+
+ - name: Add Merge On Behalf Comment
+ working-directory: ./llvm/utils/git/
+ run: |
+ python3 ./github-automation.py \
+ --token '${{ secrets.GITHUB_TOKEN }}' \
----------------
tstellar wrote:
I think it can @mention people but not teams so this should be fine.
https://github.com/llvm/llvm-project/pull/81142
More information about the llvm-commits
mailing list