Skip to content

Commit

Permalink
Merge pull request #8 from adityakalburgi/add-bot
Browse files Browse the repository at this point in the history
I have added the issue bot and issue-close bot
  • Loading branch information
vansh-codes authored Oct 7, 2024
2 parents e302abb + daf8e36 commit d88078b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/autocomment-iss-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
});
18 changes: 18 additions & 0 deletions .github/workflows/issue-comment.yml
Original file line number Diff line number Diff line change
@@ -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! 🚀

0 comments on commit d88078b

Please sign in to comment.