Repository navigation
ci: classify new issues and add auto-close and bot PR gates - #184
Conversation
Port the issue triage automations from harness-sdk: - issue-labeler.yml labels new issues and PRs by type (native issue type) and area, using the shared devtools labeler and the existing AWS_ROLE_ARN secret. - auto-close.yml closes items labeled "autoclose in 3/7 days" when no one outside the team replies. - bot-pr-review-gate.yml requires two maintainer approvals on PRs authored by bots or agents. Drop the nonexistent "triage" label from the issue templates and point the Discussions link at harness-sdk.
|
Assessment: Comment Solid, well-documented port of the harness-sdk triage automations. Permissions are least-privilege, the Review themes
Nice to see the configs tested against real issues before landing. |
|
Re-reviewed at The My two other suggestions are still open and both are non-blocking, so no need to gate the merge on them:
Assessment: Comment — looks good to merge; the two open items can be follow-ups if you prefer. |
|
Re-reviewed at The pagination fix resolves my Only one non-blocking item remains: the Assessment: Comment — LGTM. |
Description
Ports the issue and PR triage automations from harness-sdk. Today 0 of the 45 open box issues have an issue type and 26 have no labels.
issue-labeler.yml: on a new issue or PR, the sharedstrands-agents/devtools/issue-labeleraction sets one type and up to two areas. On issues, the type also sets the native issue type (Bug, Feature, Design, ...). Reuses the existingAWS_ROLE_ARNsecret that/strandsalready uses for Bedrock..github/labelers/type.ymlis the harness-sdk config minusblog, plus one line so epics and spikes that track building something stayenhancement(matching how the team has labeled them)..github/labelers/area.ymlis new and maps to box's existingArea - …labels.auto-close.yml: from harness-sdk, with issue events and comments now paginated (harness-sdk reads only the first 30 of each). A maintainer addsautoclose in 3 daysorautoclose in 7 days; the item closes after that window unless someone without write access replies, in which case the label is removed.bot-pr-review-gate.yml: verbatim from harness-sdk. PRs authored by bots or agents (bot account,*-agentlogin, GitHub App,[bot]@commit email, or abot/agentlabel) need 2 maintainer approvals. Dependabot is exempt.labels: ["triage"], since notriagelabel exists in this repo, and replace the single Discussions link (the oldsdk-pythonredirect) with two: box Discussions and harness-sdk Discussions.Runners are
ubuntu-latestto match the rest of this repo's workflows.Labels the workflows need were created ahead of this PR:
chore,design,autoclose in 3 days,autoclose in 7 days.Related Issues
None.
Type of Change
Other: CI and repository automation.
Testing
No Rust changes. Ran the devtools
classify.pylocally (classification only, no writes) with both configs against box's issues:Area - Releaseinstead ofArea - Agent Containment).design; Epic: Linux — docs #50, labeled both documentation and enhancement, comes backdocumentation).The workflows themselves only run once merged to
main(issuesandpull_request_targetevents use the default branch), so the first live run will be the next opened issue. After merge,backfill.pyin devtools can set issue types on the existing open issues.Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.