From e0efdd778666ebd7337c4f0a28a639e979b3d6e9 Mon Sep 17 00:00:00 2001 From: Durgesh kumar prajapati <98798977+Durgesh4993@users.noreply.github.com> Date: Thu, 30 May 2024 00:28:33 +0530 Subject: [PATCH] Create CommentOnIssueClose.yml --- .github/workflows/CommentOnIssueClose.yml | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/CommentOnIssueClose.yml diff --git a/.github/workflows/CommentOnIssueClose.yml b/.github/workflows/CommentOnIssueClose.yml new file mode 100644 index 0000000..8bb3823 --- /dev/null +++ b/.github/workflows/CommentOnIssueClose.yml @@ -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);