Skip to content

fix: prefer manually added team labels over topology lookup - #272

Merged
sleepytanya merged 1 commit into
mainfrom
prefer-manual-team-labels
Jul 22, 2026
Merged

fix: prefer manually added team labels over topology lookup#272
sleepytanya merged 1 commit into
mainfrom
prefer-manual-team-labels

Conversation

@sleepytanya

@sleepytanya sleepytanya commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Skip topology assignment in add-team-label when the PR already has a team-* or external-contributor label
  • Keeps manually applied team labels from being layered over by the author's topology match
  • Logs both skip and assign paths for clearer Actions output
    Fixes: MCRM-72

Note

Low Risk
Narrow change to PR labeling automation in GitHub Actions; no application runtime or security-sensitive logic.

Overview
The add-team-label composite action no longer overwrites PRs that already have a team-* or external-contributor label.

A new first step reads current labels via gh pr view; if one of those labels is present, topology lookup and label application are skipped (with log lines for skip vs assign). Get team label and Add team label run only when no such label exists. The action description and CHANGELOG document the behavior.

Reviewed by Cursor Bugbot for commit a1d3371. Bugbot is set up for automated code reviews on this repo. Configure here.

@sleepytanya
sleepytanya requested a review from vpintorico July 22, 2026 05:01
@sleepytanya
sleepytanya merged commit 308c837 into main Jul 22, 2026
10 checks passed
@sleepytanya
sleepytanya deleted the prefer-manual-team-labels branch July 22, 2026 17:19
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.

2 participants