Skip to content

Add 'Backport Pending' label whenever a PR merges with master#888

Merged
NickDris merged 5 commits intoelastic:masterfrom
NickDris:backport/add-backport-pending-label
Oct 16, 2025
Merged

Add 'Backport Pending' label whenever a PR merges with master#888
NickDris merged 5 commits intoelastic:masterfrom
NickDris:backport/add-backport-pending-label

Conversation

@NickDris
Copy link
Contributor

@NickDris NickDris commented Oct 13, 2025

We are adding the 'backport pending' label in the following conditions:

  1. PR merges with master.
  2. Has no 'backport' label.
  3. Has no version label (vX.Y or vX).
  4. Has no 'backport pending' label.

@NickDris NickDris requested a review from gbanasiak October 13, 2025 16:56
@NickDris NickDris self-assigned this Oct 14, 2025
Copy link
Contributor

@gbanasiak gbanasiak left a comment

Choose a reason for hiding this comment

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

LGTM. I've left non-blocking comments.

@gbanasiak
Copy link
Contributor

Some context for posterity:

Adding a label can be done with https://github.com/actions-ecosystem/action-add-labels, but iterating over an array of labels to determine whether they match a version pattern (vX, or vX.Y) would require https://github.com/actions/github-script and JavaScript code. The preference was to use Python instead of JS though.

@NickDris NickDris merged commit 0e92c63 into elastic:master Oct 16, 2025
15 checks passed
@NickDris NickDris deleted the backport/add-backport-pending-label branch October 16, 2025 12:53
@esbenchmachine esbenchmachine added the backport pending Awaiting backport to stable release branch label Oct 16, 2025
@NickDris NickDris added v9.2 and removed backport pending Awaiting backport to stable release branch labels Nov 21, 2025
@esbenchmachine
Copy link
Collaborator

💚 All backports created successfully

Status Branch Result
9.2

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

esbenchmachine added a commit that referenced this pull request Nov 24, 2025
We are adding the 'backport pending' label in the following conditions:
- PR merges with master.
- Has no 'backport' label.
- Has no version label (vX.Y or vX).
- Has no 'backport pending' label.

(cherry picked from commit 0e92c63)

Co-authored-by: Nick Dris <nick.dris@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants