Skip to content

Commit

Permalink
try script
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitloup committed Sep 21, 2023
1 parent 4ad22b3 commit 6a3c128
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/commentPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: pull_request

jobs:
example_comment_pr:
permissions: write-all
permissions: read-all
runs-on: ubuntu-latest
# permissions:
# contents: write
Expand All @@ -16,15 +16,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

# - uses: actions/github-script@v6
# with:
# script: |
# github.rest.issues.createComment({
# issue_number: context.issue.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body: '👋 Thanks for reporting!'
# })
- uses: actions/github-script@v6
with:
script: |
github.rest.pull_request.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Thanks for reporting!'
})
- name: Add comment to PR
env:
URL: ${{ github.event.pull_request.comments_url }}
Expand Down

0 comments on commit 6a3c128

Please sign in to comment.