From 25251512ae7877dde1f2da068a1b0f62161130a0 Mon Sep 17 00:00:00 2001 From: Luces Huayhuaca <21225410+uturunku1@users.noreply.github.com> Date: Tue, 22 Mar 2022 08:30:45 -0700 Subject: [PATCH] add github action workflow (#362) --- .github/workflows/merged-pr.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/merged-pr.yml diff --git a/.github/workflows/merged-pr.yml b/.github/workflows/merged-pr.yml new file mode 100644 index 000000000..0424b8283 --- /dev/null +++ b/.github/workflows/merged-pr.yml @@ -0,0 +1,24 @@ +name: Merged Pull Request +permissions: + pull-requests: write + +# only trigger on pull request closed events +on: + pull_request_target: + types: [ closed ] + +jobs: + merge_job: + # this job will only run if the PR has been merged + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v5 + with: + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: "Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes." + })