Skip to content

poc for same-repo commenting #2

poc for same-repo commenting

poc for same-repo commenting #2

Workflow file for this run

name: Comment on PR
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: write
issues: write
jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Add PR comment
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
REPO: ${{ github.repository }}
run: |
gh api \
"repos/$REPO/issues/$PR_NUMBER/comments" \
-f body='Image diff workflow ran successfully.'