diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-01 02:13:30 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-01 02:14:52 +0300 |
| commit | 472e2b8453160affd05760b22a483b3c9ee100be (patch) | |
| tree | 3d72f0778c3a3e9f2bc0091d9f07fa4e526c0858 /.github/workflows/pr-gate.yml | |
| parent | 8307f2f712293970d80f624594d51e693d711cfb (diff) | |
chore: route feature intake to discussions
Diffstat (limited to '.github/workflows/pr-gate.yml')
| -rw-r--r-- | .github/workflows/pr-gate.yml | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/.github/workflows/pr-gate.yml b/.github/workflows/pr-gate.yml index f59f49ad..fadc4d28 100644 --- a/.github/workflows/pr-gate.yml +++ b/.github/workflows/pr-gate.yml @@ -15,6 +15,7 @@ jobs: - name: Check if contributor is approved uses: actions/github-script@v9 with: + github-token: ${{ secrets.KANGAL_GITHUB_TOKEN }} script: | const prAuthor = context.payload.pull_request.user.login; const reopener = context.payload.sender?.login ?? null; @@ -102,15 +103,19 @@ jobs: const message = [ `Hi @${prAuthor}, thanks for your interest in contributing!`, '', - 'We ask new contributors to open an issue first before submitting a PR. This helps us discuss the approach and avoid wasted effort.', + 'New contributors need maintainer approval before opening PRs. This keeps review time focused on accepted work and avoids wasted effort.', '', - 'Herdr is opinionated about how it should look, feel, and work. If your change affects UI, behavior, interaction patterns, or product direction, discuss it in an issue first.', + 'Herdr is opinionated about how it should look, feel, and work. Feature requests, ideas, questions, contribution proposals, and product-direction checks belong in Discussions, not issues.', '', '**Next steps:**', - '1. Open an issue describing what you want to change and why', - '2. Keep it concise and write in your own voice', - '3. If a maintainer approves with `/approve`, you will be added to the approved contributors list', - '4. Then you can submit your PR', + '1. If this is a feature or behavior change, open a Discussion describing what you want to change and why', + '2. If the work is accepted, a maintainer may convert the discussion into an issue or create a new issue for it', + '3. If this is a reproducible bug, open a bug report using the issue template', + '4. Wait for maintainer approval on an accepted issue before opening a PR', + ' Maintainers approve first-time PR paths with `/approve @your-github-username` on the accepted issue.', + '5. Keep it concise and write in your own voice', + '', + 'A discussion, issue, branch, or proposed implementation does not reserve the work and does not mean the PR path is approved.', '', `This PR will be closed automatically. See https://github.com/${context.repo.owner}/${context.repo.repo}/blob/${defaultBranch}/CONTRIBUTING.md for more details.`, ].join('\n'); |
