ci: ai issue triage + consolidated pr labeler & stale bot#70
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds automated issue/PR triage tooling in GitHub Actions: AI-assisted issue classification, consolidated PR labeling, and a stale bot for inactive items.
Changes:
- Introduces an AI issue triage workflow that classifies issues and applies repo/org metadata best-effort.
- Adds a consolidated PR labeler workflow (path-based + size labels) and corresponding labeler config.
- Adds a stale workflow to mark and close inactive issues/PRs with exemptions for high-priority/frozen items.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 9 comments.
| File | Description |
|---|---|
| .github/workflows/issue-triage.yml | New AI-assisted issue triage workflow using GitHub Models + gh/jq to apply labels/fields and comment. |
| .github/workflows/pr-labeler.yml | New consolidated PR labeling workflow (path labeler + size labels). |
| .github/workflows/stale.yml | New stale bot workflow to mark/close inactive issues/PRs with exemptions. |
| .github/labeler.yml | New path-to-label mapping used by actions/labeler for repo-specific areas/changes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
Author
|
copilots round 5 review ran but couldnt post its comments (
verified the input name against the action.yml at the pinned sha. |
Comment on lines
+125
to
+129
| if [ -z "$JSON" ] || ! printf '%s' "$JSON" | jq -e . >/dev/null 2>&1; then | ||
| echo "no valid json -> S: Untriaged" | ||
| gh issue edit "$NUM" --repo "$REPO" --add-label "S: Untriaged" || true | ||
| exit 0 | ||
| fi |
Comment on lines
+139
to
+140
| SUMMARY=$(echo "$JSON" | jq -r '.summary // empty' | tr '\r\n' ' ' | cut -c1-200) | ||
| NEEDS=$(echo "$JSON" | jq -r '.needs_info // false') |
| uses: actions/ai-inference@b81b2afb8390ee6839b494a404766bef6493c7d9 # v1 | ||
| with: | ||
| model: openai/gpt-4o-mini | ||
| max-tokens: 500 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
automated issue/PR triage, modelled on AIT's labeler suite but consolidated and AI-assisted.
what's here
.github/workflows/issue-triage.yml- AI triage (the new bit)on a new issue, GitHub Models (
actions/ai-inference, free built-in LLM) classifies it against our label taxonomy and:T:/P:/D:/A:/C:labels (only ones that actually exist in the repo)S: Untriagedif the model output can't be parsedworkflow_dispatchwith an issue number.github/workflows/pr-labeler.yml- path-based area labels (actions/labeler+.github/labeler.yml) + size labels (XS-XL), one file instead of AIT's seven..github/workflows/stale.yml- marks quiet issues/PRsS: Staleafter 30d, closes after 7 more. ExemptsP0/P1/S: Frozen/Issue: Intended Feature/S: Help Wanted..github/labeler.yml- path -> area/change label map for this repo'sdev.amble.liblayout.before it fully works
issues:andschedule:triggers only fire from the default branch.GITHUB_TOKENmay not have perms, hence best-effort (|| true). If you want them guaranteed, swap in a PAT/app token with org access as a secret and setGH_TOKENto it in the triage job.