Skip to content

Comment on New Discussions and Issues #21

Comment on New Discussions and Issues

Comment on New Discussions and Issues #21

Workflow file for this run

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"