Skip to content

[Chore] change related fields to release v1.8.6 #8

[Chore] change related fields to release v1.8.6

[Chore] change related fields to release v1.8.6 #8

name: Add Comment Action
on:
pull_request:
types: [closed]
permissions:
issues: write
pull-requests: write
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
comment:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- name: Comment on PR
uses: actions/github-script@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
script: |
const prComment = {
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: 'Thank you for your contribution!'
};
await github.rest.issues.createComment(prComment);