Skip to content

Commit 9fd541d

Browse files
Copilotvpeschenkov
andauthored
Add CLOSE decision for PRs with <15 GitHub stars (#1924)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: vpeschenkov <3672477+vpeschenkov@users.noreply.github.com>
1 parent 91b6e44 commit 9fd541d

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/copilot-instructions.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ Decision:
2525
- `NEEDS FIXES` if the project is acceptable but the PR needs small corrections.
2626
- `REJECT` if any main rule fails.
2727
- If only `README.md` was changed, use `REJECT` even if the project itself looks valid, and ask to resubmit with only `contents.json` updated. Do not mention regenerating `README.md`.
28+
- If the project has fewer than 15 GitHub stars, use `CLOSE`. Close the PR with a warm comment: thank the author, explain the project does not meet the minimum 15-star requirement yet, link to the contributing guidelines, and encourage them to open a new PR once the project reaches 15 stars.
2829

2930
Reply format:
30-
Decision: OK | NEEDS FIXES | REJECT
31+
Decision: OK | NEEDS FIXES | REJECT | CLOSE
3132
Comment: 2-4 short, warm, polite sentences in simple English.
3233

3334
Rules for comments:
@@ -36,5 +37,6 @@ Rules for comments:
3637
- Mention only specific blockers or fixes.
3738
- Do not invent facts.
3839
- If something cannot be verified, say so briefly.
39-
- For `NEEDS FIXES` and `REJECT`, always include:
40+
- For `NEEDS FIXES`, `REJECT`, and `CLOSE`, always include:
4041
https://github.com/matteocrippa/awesome-swift/blob/master/.github/CONTRIBUTING.md
42+
- For `CLOSE`, also tell the author they are welcome to open a new PR in the future once the project meets the requirements.

.github/instructions/pr-review.instructions.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ Decision:
2929
- `NEEDS FIXES` if the project is acceptable but the PR needs small corrections.
3030
- `REJECT` if any main rule fails.
3131
- If only `README.md` was changed, use `REJECT` even if the project itself looks valid, and ask to resubmit with only `contents.json` updated. Do not mention regenerating `README.md`.
32+
- If the project has fewer than 15 GitHub stars, use `CLOSE`. Close the PR with a warm comment: thank the author, explain the project does not meet the minimum 15-star requirement yet, link to the contributing guidelines, and encourage them to open a new PR once the project reaches 15 stars.
3233

3334
Reply format:
34-
Decision: OK | NEEDS FIXES | REJECT
35+
Decision: OK | NEEDS FIXES | REJECT | CLOSE
3536
Comment: 2-4 short, warm, polite sentences in simple English.
3637

3738
Rules for comments:
@@ -40,5 +41,6 @@ Rules for comments:
4041
- Mention only specific blockers or fixes.
4142
- Do not invent facts.
4243
- If something cannot be verified, say so briefly.
43-
- For `NEEDS FIXES` and `REJECT`, always include:
44+
- For `NEEDS FIXES`, `REJECT`, and `CLOSE`, always include:
4445
https://github.com/matteocrippa/awesome-swift/blob/master/.github/CONTRIBUTING.md
46+
- For `CLOSE`, also tell the author they are welcome to open a new PR in the future once the project meets the requirements.

0 commit comments

Comments
 (0)