Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment when PR is merged #22

Open
reveurguy opened this issue Oct 3, 2022 · 3 comments
Open

Comment when PR is merged #22

reveurguy opened this issue Oct 3, 2022 · 3 comments

Comments

@reveurguy
Copy link

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

@github-actions
Copy link

github-actions bot commented Oct 3, 2022

👋 @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.

@reveurguy
Copy link
Author

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

@bubkoo
Copy link
Member

bubkoo commented Oct 9, 2022

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants