Skip to content

Commit 1135287

Browse files
Create auto-comment-issue.yml
1 parent 80c6bdd commit 1135287

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Issue Opened and Closed Comment
2+
3+
on:
4+
issues:
5+
types: [opened, closed]
6+
7+
jobs:
8+
comment-on-issue:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Check out the repository
13+
uses: actions/checkout@v2
14+
15+
- name: Comment on Issue Opened
16+
if: ${{ github.event.action == 'opened' }}
17+
uses: actions-ecosystem/action-create-comment@v1
18+
with:
19+
github_token: ${{ secrets.GITHUB_TOKEN }}
20+
issue_number: ${{ github.event.issue.number }}
21+
body: |
22+
Thanks for opening this issue! We appreciate your contribution. Please make sure you’ve provided all the necessary details and screenshots, and don't forget to follow our [Guidelines](https://github.com/OWNER/REPO/CONTRIBUTING.md) and Code of Conduct. Happy coding! 🚀
23+
- name: Comment on Issue Closed
24+
if: ${{ github.event.action == 'closed' }}
25+
uses: actions-ecosystem/action-create-comment@v1
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
issue_number: ${{ github.event.issue.number }}
29+
body: |
30+
This issue has been successfully closed. Thank you for your contribution and helping us improve the project! If you have any more ideas or run into other issues, feel free to open a new one. Happy coding! 🚀

0 commit comments

Comments
 (0)