8000 gha(update-label-backport): ignore leading 'v' in branch parameter by giorio94 · Pull Request #34013 · cilium/cilium · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gha(update-label-backport): ignore leading 'v' in branch parameter #34013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

giorio94
Copy link
Member
@giorio94 giorio94 commented Jul 25, 2024

The blamed commit modified the call-backport-label-updater workflow to directly call the update-label-backport-pr reusable workflow passing github.base_ref as branch name, rather than manually computing it. However, the branch name includes a leading 'v' (e.g., v1.15), while the backport labels don't (e.g., backport-done/1.15), causing the update to fail. Let's fix this by removing the leading 'v' from the branch name, if present.

Successfully tested in my personal fork (last time I had incorrectly used backport labels with the leading v).

Fixes: e91378b ("gha: simplify the call-backport-label-updater workflow")

The blamed commit modified the call-backport-label-updater workflow to
directly call the update-label-backport-pr reusable workflow passing
github.base_ref as branch name, rather than manually computing it.
However, the branch name includes a leading 'v' (e.g., v1.15), while
the backport labels don't (e.g., backport-done/1.15), causing the
update to fail. Let's fix this by removing the leading 'v' from the
branch name, if present.

Fixes: e91378b ("gha: simplify the call-backport-label-updater workflow")
Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
@giorio94 giorio94 added area/CI Continuous Integration testing issue or flake release-note/ci This PR makes changes to the CI. labels Jul 25, 2024
@giorio94
Copy link
Member Author

/test

@giorio94 giorio94 marked this pull request as ready for review July 25, 2024 12:45
@giorio94 giorio94 requested review from a team as code owners July 25, 2024 12:45
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jul 25, 2024
@squeed squeed added this pull request to the merge queue Jul 25, 2024
Merged via the queue into main with commit 10d3b53 Jul 25, 2024
74 checks passed
@squeed squeed deleted the pr/giorio94/main/gha-fix-update-label-backport-workflow branch July 25, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0