diff --git a/.github/workflows/autocomment-iss-close.yml b/.github/workflows/autocomment-iss-close.yml index 7c943e0..6b0da97 100644 --- a/.github/workflows/autocomment-iss-close.yml +++ b/.github/workflows/autocomment-iss-close.yml @@ -19,11 +19,11 @@ jobs: const issueCreator = issue.user.login; const issueNumber = issue.number; - const greetingMessage = `Hello @${issueCreator}! Your issue #${issueNumber} has been closed. Thank you for your contribution!`; + const greetingMessage = `Hello @${issueCreator}! Your issue #${issueNumber} ✅ 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! 🚀 github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo, issue_number: issueNumber, body: greetingMessage - }); \ No newline at end of file + }); diff --git a/.github/workflows/issue-comment.yml b/.github/workflows/issue-comment.yml new file mode 100644 index 0000000..062cf96 --- /dev/null +++ b/.github/workflows/issue-comment.yml @@ -0,0 +1,18 @@ +name: Issue Auto Commenter + +on: + issues: + types: [opened] + +jobs: + comment: + runs-on: ubuntu-latest + + steps: + - name: Add comment to new issue + uses: actions-ecosystem/action-add-comment@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + issue_number: ${{ github.event.issue.number }} + comment: | + 👋 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 and Code of Conduct. Happy coding! 🚀