Skip to content

Commit 044933f

Browse files
authored
Sync contribution-check workflow and agent from github/gh-aw (#171)
1 parent 6035e2b commit 044933f

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

.github/agents/contribution-checker.agent.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,18 +120,18 @@ Hey @alice 👋 — thanks for working on the auth refactor! Here are a few thin
120120

121121
If you'd like a hand, you can assign this prompt to your coding agent:
122122

123-
````prompt
123+
` `` prompt
124124
Add unit tests for the rate-limiting middleware in src/auth/limiter.ts.
125125
Cover the following scenarios:
126126
1. Request under the limit — should pass through.
127127
2. Request at the limit — should return 429.
128128
3. Limit reset after window expires.
129-
````
129+
` ``
130130
```
131131

132132
## Important
133133

134134
- **Read-only** — NEVER write to the target repository. No comments, no labels, no interactions.
135135
- **Adapt to the project** — every CONTRIBUTING.md is different. Do not assume goals, boundaries, or labels that aren't in the document.
136136
- Be constructive — these assessments help maintainers prioritize, not gatekeep.
137-
- Be deterministic — apply the rules mechanically without hedging.
137+
- Be deterministic — apply the rules mechanically without hedging.

docs/contribution-check.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ You can trigger this workflow manually via workflow_dispatch or let it run on it
2424

2525
The workflow uses a pre-filtering step to intelligently select PRs for evaluation. You can customize:
2626

27+
- **Target repository**: Set a `TARGET_REPOSITORY` repository variable to check PRs in a different repository than where the workflow runs. By default, it checks the repository where the workflow is installed.
2728
- **Schedule frequency**: Change `every 4 hours` to your preferred interval
28-
- **PR filter logic**: Modify the skip conditions in the `github-script` step (e.g., which labels indicate trusted contributors, what constitutes a "small" PR)
29-
- **Batch size**: Adjust the `TARGET` constant (default: 10 PRs per run)
3029
- **Report format**: Customize the report layout rules in the main workflow prompt
31-
- **Skip labels**: Update `SKIP_LABELS` and `SMALL_LABELS` sets to match your repository's labeling conventions
3230

3331
The workflow requires a `CONTRIBUTING.md` file (or `.github/CONTRIBUTING.md` or `docs/CONTRIBUTING.md`) to evaluate PRs against. If no contribution guidelines exist, PRs will be marked with `no-guidelines` quality.
3432

workflows/contribution-check.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,4 @@ If any subagent call failed (❓), also apply `outdated`.
170170
- **Write to `${{ github.repository }}`** — reports go here as issues.
171171
- **Use safe output tools for target repository interactions** — use `add-comment` and `add-labels` safe output tools to post comments and labels to PRs in the target repository `${{ env.TARGET_REPOSITORY }}`. Never use `gh` CLI or direct API calls for writes.
172172
- Close the previous report issue when creating a new one (`close-older-issues: true`).
173-
- Be constructive in assessments — these reports help maintainers prioritize, not gatekeep.
173+
- Be constructive in assessments — these reports help maintainers prioritize, not gatekeep.

0 commit comments

Comments
 (0)