Skip to content

Update etc.cpp

Update etc.cpp #9

Workflow file for this run

name: Add merge comment
on:
pull_request:
types: [closed]
jobs:
add-merge-comment:
permissions: write-all
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Generate Comment
id: generate_comment
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const pull_request = context.payload.pull_request_target;
const author = pull_request.user.login;
const issue_number = pull_request.number;
const body = `Thanks @${author} 🏆`;
return { body: body };
- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
message: ${{ steps.generate_comment.outputs.body }}
reactions: rocket