Enhance Wellness Hub UI and Add Advanced Health Calculators #8
This file contains hidden or 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: Auto-Respond to New Issues | |
on: | |
issues: | |
types: [opened] | |
permissions: | |
issues: write | |
jobs: | |
issue_response: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Post automated comment on new issue | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const issueNumber = context.issue.number; | |
const commentBody = "Thanks for opening an issue! 🎉\n\n" + | |
"Your contribution helps us improve the project.\n\n" + | |
"Our team will review your submission as soon as possible.\n" + | |
"Please make sure your issue follows the provided template to help us process it faster.\n\n" + | |
"Keep building awesome stuff! 🚀"; | |
await github.rest.issues.createComment({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: issueNumber, | |
body: commentBody | |
}); | |
console.log('Issue comment posted successfully.'); |