Skip to content

post-triage.sh does not apply bug label for bug-category issues #95

Description

@rh-hemartin

The sufficient action handler in post-triage.sh applies category-specific labels for feature (adds feature + triaged) but does not add a bug label when triage_summary.category is "bug". It only defers ready-to-code.

This means the bug label only appears if the agent happens to include it in label_actions, which is non-deterministic. The feature path is deterministic because the post-script handles it directly.

Observed in CI: functional-tests on PR #54 failed with required_labels pass rate 75% (3/4). Case 001-bug-url-encoding expects both ready-to-code and bug, but only got ready-to-code. The agent result had category: "bug" with no label_actions for bug.

Fix: Split bug out of the bug|documentation|performance case branch at line 318 and explicitly add_label "bug". Same pattern as the feature branch. Also update post-triage-test.sh: add a sufficient-bug-gets-bug-label test, add bug to the mock label list, and change the nonexistent-label test fixture from bug to a truly nonexistent label name.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingready-to-codeTriggers code agent dispatch

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions