This actions comments with your desired message whenever new issue is created.
GitHub token
Markdown content you want to post as comment
Ignore posting comment when this label is found on the issue. This is helpful if you have internal issues and you apply label to them and you don't want this action to post comment each time.
Only post comment if this label is found on the issue. This is helpful in scenarios where you apply specific label to issues where your team will respond. Like in our case all our issue created by customer has support
label and we want to comment that we will get back you within 1-2 business days.
Do note that if ignore-label
is also found with this label then action will omit processing.
NOTE: Do update action version
jd-0001/gh-action-comment-on-new-issue@{YOUR_DESIRED_VERSION}
. This will help you keep using this action if we introduce breaking changes.
on:
issues:
types: [opened]
jobs:
comment_on_new_issue:
runs-on: ubuntu-latest
name: Job for commenting on new issue
steps:
- name: Comment
uses: jd-0001/[email protected]
with:
message: 'Welcome to the repo :)'
on:
issues:
types: [opened]
jobs:
comment_on_new_issue:
runs-on: ubuntu-latest
name: Job for commenting on new issue
steps:
- name: Comment
uses: jd-0001/[email protected]
with:
message: 'Welcome to the repo :)'
only-if-label: 'support'
on:
issues:
types: [opened]
jobs:
comment_on_new_issue:
runs-on: ubuntu-latest
name: Job for commenting on new issue
steps:
- name: Comment
uses: jd-0001/[email protected]
with:
message: 'Welcome to the repo :)'
ignore-label: 'internal'