Skip to content

Comment

Comment #6198

Workflow file for this run

name: Comment
on:
issue_comment:
types:
- created
permissions:
contents: write
pull-requests: write
jobs:
comment-approve:
runs-on: ubuntu-latest
if: github.event.issue.pull_request && contains(github.event.comment.body, '/approve')
timeout-minutes: 3
steps:
- name: Get PR Branch
uses: xt0rted/pull-request-comment-branch@v2
id: comment-branch
- name: Fetch Head w/ Token
uses: actions/checkout@v4
with:
ref: ${{ steps.comment-branch.outputs.head_ref }}
token: ${{ secrets.BOT_TOKEN }}
- name: Commit and Push
run: |
git config --local user.name 'github-actions[bot]'
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
git commit --allow-empty -m "chore: trigger workflow"
git push