ci: auto-label issues by bug / feature / performance#7727
Merged
Conversation
Adds issue forms under `.github/ISSUE_TEMPLATE/` that route new issues to the `bug`, `feature`, and `performance` labels automatically, so triage no longer depends on hand-labeling. Each form collects the fields we routinely ask for (Lance version, language binding, environment, reproduction), and `config.yml` points usage questions to Discord. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Contributor
📝 WalkthroughWalkthroughAdds structured GitHub issue templates and contact guidance, configures title- and body-based automatic labeling for issue events, and documents label and title conventions for issues created through the CLI or API. ChangesIssue management
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Reporter
participant GitHubIssues
participant IssueLabelerWorkflow
participant IssueLabelerConfig
Reporter->>GitHubIssues: Create or edit issue
GitHubIssues->>IssueLabelerWorkflow: Emit opened or edited event
IssueLabelerWorkflow->>IssueLabelerConfig: Apply title and body rules
IssueLabelerConfig-->>GitHubIssues: Add matching labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
…ract The ISSUE_TEMPLATE forms only label issues opened through the web UI. Issues filed via `gh issue create`, the REST API, or an agent bypass templates and land unlabeled. Add a content-based labeler (srvaroa/labeler, reusing the pinned action from the PR labeler) that runs on `issues` events and applies bug/feature/ performance from a leading title marker (e.g. `bug:`, `[feature]`), with body keywords as a secondary fallback. Unmatched issues get no label and are left for human triage rather than guessed at; `appendOnly` stacks harmlessly with template labels. Also document in AGENTS.md that agents should pass an explicit `--label` when opening issues, since that path bypasses the templates. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The goal is reliable labeling, not enforcing structure. Keep the bug report as a form (repro, version, bindings are worth prompting for) but convert the feature and performance templates to free-form Markdown templates that still apply their label via front matter. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
wjones127
marked this pull request as ready for review
July 10, 2026 18:25
Contributor
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/ISSUE_TEMPLATE/config.yml:
- Around line 3-4: Update the “Question / usage help” link in the issue template
to use the same Discord invite URL referenced by CONTRIBUTING.md, replacing the
stale or inconsistent invite.
In @.github/workflows/issue-labeler.yml:
- Around line 18-29: Add a top-level permissions: {} block for defense-in-depth,
and add a brief explanatory comment above the existing job-level permissions in
the label job clarifying that issues: write is intentionally scoped to the
labeler action.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 7eb3ea94-72f1-4b73-9e20-4ef1221e6b7a
📒 Files selected for processing (7)
.github/ISSUE_TEMPLATE/bug_report.yml.github/ISSUE_TEMPLATE/config.yml.github/ISSUE_TEMPLATE/feature_request.md.github/ISSUE_TEMPLATE/performance_issue.md.github/labeler-issues.yml.github/workflows/issue-labeler.ymlAGENTS.md
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.
Labeling incoming issues by hand as bug / feature / performance is tedious. This applies the label automatically through three complementary layers, so it works no matter how an issue is opened. The aim is reliable labeling, not enforcing issue structure.
1. Issue templates (web UI)
Templates under
.github/ISSUE_TEMPLATE/, each auto-applying its label:bug— a light form: description, reproduction, Lance version, language binding (env and logs optional).feature— free-form.performance— free-form.config.ymlkeeps blank issues enabled and routes usage questions to Discord.2. Content-based labeler (everything else)
Templates only fire for the web-UI chooser. Issues opened via
gh issue create, the REST API, or an agent bypass them and land unlabeled..github/workflows/issue-labeler.ymlcloses that gap: it runssrvaroa/labeler(the same pinned action the PR labeler uses) onissuesevents, keyed by.github/labeler-issues.yml.bug:,[feature],perf -, …), which people commonly type by hand.appendOnlymeans it never strips a template/human label and is idempotent on edit.3. Agent contract (AGENTS.md)
A template can't bind an agent, so
AGENTS.mdnow instructs agents to pass an explicit--label bug|feature|performance(and prefix the title) when opening issues.Notes
🤖 Generated with Claude Code
Summary by CodeRabbit