Skip to content

[New Feature]: Sponsors Details Page Development #9

[New Feature]: Sponsors Details Page Development

[New Feature]: Sponsors Details Page Development #9

Workflow file for this run

name: Close issue comment
on:
issues:
types:
- closed
jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Issue close
uses: actions/github-script@v4
with:
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
script: |
const { owner, repo, number } = context.issue;
const commentauthor = context.payload.issue.user.login;
const commentBody = `Hey @${commentauthor} ! I wanted to inform you that we have closed issue.Thank you for your understanding, and we look forward to your continued engagement with our repository🤗.\n In case of any issues, you can contact us on [Discord](https://discord.gg/mv4NTzN). \nThank you! ❣️\nHappy Coding! ✨\nWill See you soon❣️
`;
await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody });
console.log(`Commented on the issue: ${commentBody}.`);