-
Notifications
You must be signed in to change notification settings - Fork 72
34 lines (28 loc) · 1.23 KB
/
CommentonPRClose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Comment on Pull Request Close
on:
pull_request:
types: [closed]
jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Comment on Closed Pull Request
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const response = await github.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number,
body: `
Thank you for your contribution! The pull request has been closed.
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 created separate channels for all projects.
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/)
Happy coding! 🚀
`
});
console.log(response);