chore(deps): bump vitest from 4.1.10 to 4.1.11 #1144
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 | |
| on: | |
| pull_request_target: | |
| types: [opened] | |
| permissions: | |
| pull-requests: write | |
| jobs: | |
| welcome: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/github-script@v9 | |
| with: | |
| script: | | |
| // Check if this is the author's first PR in this repo | |
| const creator = context.payload.pull_request.user.login; | |
| const { data: prs } = await github.rest.pulls.list({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| state: 'all', | |
| per_page: 2, | |
| }); | |
| const authorPrs = prs.filter(pr => pr.user.login === creator); | |
| if (authorPrs.length > 1) { | |
| console.log(`${creator} has contributed before — skipping welcome.`); | |
| return; | |
| } | |
| const body = [ | |
| `Thanks for your first PR, @${creator}! 🎉`, | |
| '', | |
| 'A few things to keep in mind:', | |
| '- CI will run automatically — all checks must pass before merge.', | |
| '- Commit messages must follow [Conventional Commits](https://www.conventionalcommits.org/) (`feat(scope):`, `fix(scope):`, etc.).', | |
| '- New features should be [skills](CONTRIBUTING.md#why-skills) (`.claude/skills/`), not source code changes.', | |
| '- See [CONTRIBUTING.md](CONTRIBUTING.md) for the full guide.', | |
| '', | |
| 'Please allow 2–3 days for review. Feel free to ask questions in the comments.', | |
| ].join('\n'); | |
| await github.rest.issues.createComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.payload.pull_request.number, | |
| body, | |
| }); |