chore: use dedicated label for backport sync-changelog pull requests#19930
Open
mrodm wants to merge 1 commit into
Open
chore: use dedicated label for backport sync-changelog pull requests#19930mrodm wants to merge 1 commit into
mrodm wants to merge 1 commit into
Conversation
Use `backport:sync-changelog` instead of `automation` for the pull requests created by the sync-backport-changelog workflow. The `automation` label is already used for unrelated purposes in this repository (dependabot PRs and flaky-test issues), so filtering on it to skip processing sync-changelog PRs would also incorrectly match those. A dedicated label avoids the collision.
mrodm
commented
Jul 2, 2026
| "--head", workingBranch, | ||
| "--title", prTitle, | ||
| "--label", "automation", | ||
| "--label", "backport:sync-changelog", |
Collaborator
Author
There was a problem hiding this comment.
If this looks good, I'll create the label.
💚 Build Succeeded
cc @mrodm |
3 tasks
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.
Proposed commit message
WHY: elastic/integrations#19215 proposed labeling pull requests created by workflows with
automation, so that other automation can skip processing them. However,automationis already applied to dependabot PRs (.github/dependabot.yml) and flaky-test issues (dev/testsreporter/testsreporter.go), so any future check for "does this PR have theautomationlabel" would also match those unrelated PRs/issues.WHAT:
dev/backports/changelog/sync.go: change the label passed togh pr createfromautomationtobackport:sync-changelogwhen creating the changelog-sync PR.Note for reviewers: the
backport:sync-changeloglabel does not exist yet onelastic/integrationsand needs to be created before this takes effect, otherwisegh pr create --labelwill fail.Author's Checklist
backport:sync-changeloglabel onelastic/integrationsbefore/alongside merging this PRHow to test this PR locally
This change only affects the label passed to
gh pr createindev/backports/changelog/sync.go. It can be verified by running the existing unit tests:go test ./dev/backports/changelog/...To confirm end-to-end, trigger the
sync-backport-changelogworkflow (push achangelog.ymlchange to abackport-*branch) and check that the resulting PR is labeledbackport:sync-changeloginstead ofautomation.Related issues