Skip to content

chore: use dedicated label for backport sync-changelog pull requests#19930

Open
mrodm wants to merge 1 commit into
elastic:mainfrom
mrodm:update_sync_changelog_label
Open

chore: use dedicated label for backport sync-changelog pull requests#19930
mrodm wants to merge 1 commit into
elastic:mainfrom
mrodm:update_sync_changelog_label

Conversation

@mrodm

@mrodm mrodm commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Proposed commit message

chore: use dedicated label for backport sync-changelog pull requests

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.

WHY: elastic/integrations#19215 proposed labeling pull requests created by workflows with automation, so that other automation can skip processing them. However, automation is 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 the automation label" would also match those unrelated PRs/issues.

WHAT:

  • dev/backports/changelog/sync.go: change the label passed to gh pr create from automation to backport:sync-changelog when creating the changelog-sync PR.

Note for reviewers: the backport:sync-changelog label does not exist yet on elastic/integrations and needs to be created before this takes effect, otherwise gh pr create --label will fail.

Author's Checklist

  • Create the backport:sync-changelog label on elastic/integrations before/alongside merging this PR

How to test this PR locally

This change only affects the label passed to gh pr create in dev/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-changelog workflow (push a changelog.yml change to a backport-* branch) and check that the resulting PR is labeled backport:sync-changelog instead of automation.

Related issues


This PR was generated with the assistance of Claude (claude-sonnet-5).

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.
"--head", workingBranch,
"--title", prTitle,
"--label", "automation",
"--label", "backport:sync-changelog",

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this looks good, I'll create the label.

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

cc @mrodm

@mrodm mrodm marked this pull request as ready for review July 2, 2026 10:23
@mrodm mrodm requested a review from a team as a code owner July 2, 2026 10:23
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.

1 participant