Skip to content

Commit

Permalink
Create CommentOnIssueClose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Durgesh4993 authored May 29, 2024
1 parent 1951172 commit e0efdd7
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/CommentOnIssueClose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Comment on Issue Close

on:
issues:
types: [closed]

jobs:
comment:
runs-on: ubuntu-latest

steps:
- name: Comment on Closed Issue
uses: actions/github-script@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const response = await github.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: `
Thank you for your contribution! If you have any questions or need further assistance, feel free to reach out to us on our Discord server: [Discord](https://discord.gg/rZb46cCMmK). We have separate channels for all projects. Happy coding! 🚀
Connect with us on social media:
- **GitHub**: [GameSphere-MultiPlayer](https://github.com/GameSphere-MultiPlayer)
- **LinkedIn**: [ChromeGaming](https://www.linkedin.com/company/chromegaming)
- **Instagram**: [@chromegamingon](https://www.instagram.com/chromegamingon/)
`
});
console.log(response);

0 comments on commit e0efdd7

Please sign in to comment.