auto-comment icon indicating copy to clipboard operation
auto-comment copied to clipboard

Comment when PR is merged

Open reveurguy opened this issue 3 years ago • 3 comments
trafficstars

Hii I want to add an auto-comment when the PR is merged, is there any way to do that?

reveurguy avatar Oct 03 '22 08:10 reveurguy

👋 @reveurguy Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.

github-actions[bot] avatar Oct 03 '22 08:10 github-actions[bot]

Also the comment when PR is closed is not working. When PR is opened, the comment is working fine

reveurguy avatar Oct 03 '22 10:10 reveurguy

@reveurguy

Explicitly specify the PR "closed" event is work for me. And "merged" event is supported in this PR. Try the following configuration:

name: Auto Comment
on:
  pull_request:
    types: [closed]
jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: wow-actions/auto-comment@v1
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

          pullRequestClosed: >
            👋 @{{ author }} This PR is closed.

          pullRequestMerged: >
            👋 @{{ author }} This PR is merged.

bubkoo avatar Oct 09 '22 02:10 bubkoo