Skip to content
name: Create a comment on new issue
on:
issues: # whenever a new issue is created (opened)
types: [opened]
jobs:
comment-with-action:
runs-on: ubuntu-latest
steps:
- name: "Dump GitHub context"
run: echo '${{ toJSON(github.event) }}' | jq
shell: bash
# this will create a comment after passing certain amoount numbers of issues. from GitHub **Markdown** https://github.com/marketplace/actions/create-or-update-comment
- name: Create comment
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.issue.number }}
body: |
This is a multi-line test comment
- With GitHub **Markdown** :sparkles:
- Created by [create-or-update-comment][1]
[1]: https://github.com/peter-evans/create-or-update-comment
reactions: "+1"