Skip to content

Allow campaigner-automated-change label in PR validation#11311

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit intomasterfrom
matthew.li/allow-campaigner-label
May 7, 2026
Merged

Allow campaigner-automated-change label in PR validation#11311
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit intomasterfrom
matthew.li/allow-campaigner-label

Conversation

@mhlidd
Copy link
Copy Markdown
Contributor

@mhlidd mhlidd commented May 7, 2026

What Does This Do

Adds an exact-match allowlist to .github/workflows/check-pull-request-labels.yaml and includes campaigner-automated-change in it, so that label no longer fails the "Validate PR Label Format" check.

The validation now passes a label if either:

  • it starts with one of the existing category prefixes (type:, comp:, inst:, tag:, mergequeue-status:, team:, performance:, run-tests:), or
  • its full name appears in the new exactAllowlist array.

Motivation

The campaigner-automated-change label is applied by external automation (Campaigner) and doesn't fit any of the existing category prefixes. Without this change, every PR that automation labels triggers a sticky <!-- dd-trace-java-check-pr-labels-workflow --> blocking comment that a maintainer must manually delete to unblock the merge — even though the label itself is intentional and valid.

A separate exactAllowlist (rather than dropping the label name into validCategories directly) keeps the "category prefix" and "specific exempt label" concepts distinct, which is friendlier to future readers and makes it obvious where to add similar automation labels in the future.

Additional Notes

  • No behavior change for any existing label.
  • Future automation-applied labels can be added by appending to the exactAllowlist array.

Contributor Checklist

Jira ticket: N/A

Note: Once your PR is ready to merge, add it to the merge queue by commenting /merge. /merge -c cancels the queue request. /merge -f --reason "reason" skips all merge queue checks; please use this judiciously, as some checks do not run at the PR-level. For more information, see this doc.

The PR label-validation workflow only accepts labels matching one of a
small set of category prefixes (`type:`, `comp:`, `inst:`, `tag:`, ...).
Labels applied by external automation (e.g. Campaigner) don't follow
that scheme, so they trip the check and the PR gets a sticky blocking
comment that requires a maintainer to remove.

Add an explicit exact-match allowlist alongside the prefix list so
known-good labels from automation tooling can pass without conflating
the "category prefix" concept with "exact label name".

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mhlidd mhlidd added the tag: ai generated Largely based on code generated by an AI or LLM label May 7, 2026
@mhlidd mhlidd changed the title ci: allow campaigner-automated-change label in PR validation Allow campaigner-automated-change label in PR validation May 7, 2026
@mhlidd mhlidd added type: enhancement Enhancements and improvements tag: no release notes Changes to exclude from release notes comp: tooling Build & Tooling labels May 7, 2026
@mhlidd mhlidd marked this pull request as ready for review May 7, 2026 19:57
@mhlidd mhlidd requested a review from a team as a code owner May 7, 2026 19:57
@mhlidd mhlidd requested review from AlexeyKuznetsov-DD and sarahchen6 and removed request for a team May 7, 2026 19:57
@mhlidd mhlidd enabled auto-merge May 7, 2026 20:04
@mhlidd mhlidd added this pull request to the merge queue May 7, 2026
@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts Bot commented May 7, 2026

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 Bot commented May 7, 2026

View all feedbacks in Devflow UI.

2026-05-07 21:44:28 UTC ℹ️ Start processing command /merge


2026-05-07 21:44:33 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-05-07 23:13:57 UTC ℹ️ MergeQueue: This merge request was merged

@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 7, 2026
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot merged commit 1129838 into master May 7, 2026
765 of 775 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot deleted the matthew.li/allow-campaigner-label branch May 7, 2026 23:13
@github-actions github-actions Bot added this to the 1.63.0 milestone May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: tooling Build & Tooling tag: ai generated Largely based on code generated by an AI or LLM tag: no release notes Changes to exclude from release notes type: enhancement Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants