Skip to content

Commit

Permalink
Update autocomment-pr-merge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sapatevaibhav authored May 19, 2024
1 parent 82a282f commit db7cb66
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/autocomment-pr-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ on:
pull_request:
types: [closed]

permissions:
issues: write
pull-requests: write

jobs:
comment:
runs-on: ubuntu-latest
Expand All @@ -19,7 +15,7 @@ jobs:

- name: Add Comment to Issue
env:
GITHUB_TOKEN: ${{ secrets.WORK }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
COMMENT=$(cat <<EOF
{
Expand All @@ -30,5 +26,6 @@ jobs:
curl -X POST \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
-H "Content-Type: application/json" \ # Add this line to specify the content type
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments \
-d "$COMMENT"

0 comments on commit db7cb66

Please sign in to comment.