[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:15:39 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:
Can the default GITHUB_TOKEN @mention people?
https://github.com/llvm/llvm-project/pull/81142
    
    
More information about the llvm-commits
mailing list