Create a Landing Page for Discord Clone. #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Comment on opening issue! | |
on: | |
issues: | |
types: | |
- opened | |
jobs: | |
comment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Issue Opened | |
uses: actions/github-script@v4 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const { owner, repo, number } = context.issue; | |
const commentauthor = context.payload.issue.user.login; | |
const commentBody = `Hello @${commentauthor} Thank you for creating a new issue! 🎉 Your issue is currently under review.\nIf you would like to assign this issue to yourself, please comment with the word "self" and the issue will be assigned to you.`; | |
await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); | |
console.log(`Commented on the issue: ${commentBody}.`); | |