Skip to content

ci: classify new issues and add auto-close and bot PR gates - #184

Merged
yonib05 merged 3 commits into
strands-agents:mainfrom
yonib05:ci/issue-triage-automation
Oct 28, 2026
Merged

yonib05 merged 3 commits into
strands-agents:mainfrom
yonib05:ci/issue-triage-automation

Conversation

@yonib05

@yonib05 yonib05 commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

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 shared strands-agents/devtools/issue-labeler action sets one type and up to two areas. On issues, the type also sets the native issue type (Bug, Feature, Design, ...). Reuses the existing AWS_ROLE_ARN secret that /strands already uses for Bedrock.
    • .github/labelers/type.yml is the harness-sdk config minus blog, plus one line so epics and spikes that track building something stay enhancement (matching how the team has labeled them).
    • .github/labelers/area.yml is new and maps to box's existing Area - … 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 adds autoclose in 3 days or autoclose 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, *-agent login, GitHub App, [bot]@ commit email, or a bot/agent label) need 2 maintainer approvals. Dependabot is exempt.
  • Issue templates: drop labels: ["triage"], since no triage label exists in this repo, and replace the single Discussions link (the old sdk-python redirect) with two: box Discussions and harness-sdk Discussions.

Runners are ubuntu-latest to 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.py locally (classification only, no writes) with both configs against box's issues:

The workflows themselves only run once merged to main (issues and pull_request_target events use the default branch), so the first live run will be the next opened issue. After merge, backfill.py in devtools can set issue types on the existing open issues.

Checklist

  • I have read the CONTRIBUTING document
  • I have reviewed and understand every line of code in this PR, including any generated by AI tools, and I can explain why it works
  • My change is focused and reasonably small; I have split unrelated work into separate PRs
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • My changes generate no new warnings

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

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.
Comment thread .github/ISSUE_TEMPLATE/config.yml Resolved
@yonib05
yonib05 enabled auto-merge (squash) October 27, 2026 23:19
Comment thread .github/workflows/issue-labeler.yml Resolved
Comment thread .github/workflows/auto-close.yml Resolved
@github-actions

Copy link
Copy Markdown

Assessment: Comment

Solid, well-documented port of the harness-sdk triage automations. Permissions are least-privilege, the pull_request_target bot gate correctly reads metadata only without checking out PR code, and all labels referenced by the configs exist in the repo. A few non-blocking items to consider before merge.

Review themes
  • Correctness: auto-close.yml fetches issue events without pagination, which can skip issues that have accumulated many events (inline comment).
  • Security/reproducibility: the labeler action is pinned to @main while holding id-token/write scopes; consider a tag or SHA (inline comment).
  • Accuracy: the Discussions URL is valid and canonical, but the "only one repo has Discussions enabled" comment is stale since box also has Discussions enabled (reply on @ferdingler's thread).

Nice to see the configs tested against real issues before landing.

@github-actions

Copy link
Copy Markdown

Re-reviewed at 8ae2abf.

The config.yml update resolves my earlier note nicely — linking both box/discussions ("Strands Box Support") and harness-sdk/discussions ("Strands Agents SDK Support") is clear, and both repos do have Discussions enabled. Thanks for the quick turnaround.

My two other suggestions are still open and both are non-blocking, so no need to gate the merge on them:

  • auto-close.yml:131 — listEvents pagination (correctness edge case on high-activity issues)
  • issue-labeler.yml:25,40 — @main pin on the privileged labeler action

Assessment: Comment — looks good to merge; the two open items can be follow-ups if you prefer.

@github-actions

Copy link
Copy Markdown

Re-reviewed at 88b642f.

The pagination fix resolves my auto-close.yml note — listEvents now uses github.paginate(..., per_page: 100), and you also paginated listComments (keeping the since filter), so the labelEvents.length === 0 skip edge case on high-activity issues is handled. Nice.

Only one non-blocking item remains: the issue-labeler.yml labeler action is still pinned to @main (lines 25, 40). Fine to leave as a follow-up given it's a first-party action.

Assessment: Comment — LGTM.

@yonib05
yonib05 merged commit cd28945 into strands-agents:main Oct 28, 2026
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants