Skip to content

Feat: Add A Preloader Across All the pages (Excluding Home Page) #161

Feat: Add A Preloader Across All the pages (Excluding Home Page)

Feat: Add A Preloader Across All the pages (Excluding Home Page) #161

Workflow file for this run

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}.`);