Redesign and enhance the 404 (Page Not Found) experience #198
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: Welcome Message | |
| on: | |
| issues: | |
| types: [opened] | |
| pull_request: | |
| types: [opened] | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| contents: read | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| welcome: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Welcome New Issue | |
| if: github.event_name == 'issues' | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: "👋 Hello! Thank you for raising this issue. \n\nOur team (Nitya-003) will review it shortly. In the meantime, please ensure you've provided all necessary details in the description. \n\n🌟 **Feel free to Star the repo if you like our work!**" | |
| }) | |
| - name: Welcome New PR | |
| if: github.event_name == 'pull_request' | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: "🚀 Wow! Thanks for the Pull Request. \n\nWe appreciate your contribution to **InnerHue**. We will review your changes and get back to you soon. Please make sure your PR follows our 'Apple-level' design standards! \n\n✨ Happy Coding!" | |
| }) |