Comment on New Discussions and Issues #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Comment on New Discussions and Issues | |
on: | |
discussion: | |
types: [created] | |
issues: | |
types: [opened] | |
jobs: | |
comment_on_discussion: | |
if: github.event_name == 'discussion' | |
uses: ./.github/workflows/comment-template.yml | |
with: | |
subject_id: ${{ github.event.discussion.node_id }} | |
body_prefix: "Thank you for starting a new discussion!" | |
comment_type: "discussion" | |
comment_on_issue: | |
if: github.event_name == 'issues' | |
uses: ./.github/workflows/comment-template.yml | |
with: | |
subject_id: ${{ github.event.issue.node_id }} | |
body_prefix: "Thank you for opening a new issue!" | |
comment_type: "issue" |