Repository navigation
Fixing workflow for labeling PR - #1464
Merged
pacostas merged 1 commit intoNov 13, 2026
Merged
Conversation
anthonydahanne
approved these changes
Nov 13, 2026
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.
Summary
The PR does not use the
PAKETO_BOT_GITHUB_TOKENwhich (which is a very good thing), https://github.com/paketo-buildpacks/github-config/pull/1454/changes#diff-ee856dade2ba354b6fa1f0dfd5539c02301bd4c77e3a91853393a5e1dc40a7edalthough, when the worklfow runs, on the first time the PR opens, there is no label. This results in
failureof theCheck Minimal Semver Labelsthis failure triggers theAuto-label Semverstep which adds the label. The Problem is that thePAKETO_BOT_GITHUB_TOKENis not used anymore and insteadGITHUB_TOKENis being used. This results not retriggering the label-pr.yml workflow, as github does not allow triggering other workflows ifGITHUB_TOKENis being used but only with PAT tokens such asPAKETO_BOT_GITHUB_TOKEN. As a result, the labe-pr.yml file sets the label, but it does not re-trigger itself and action never passes on the protection branch rules.This PR changes the workflow by only running once, without relying on re-triggering it self. This happens by just checking if there is already a label, otherwise tries to label it and in the end does the check, whether the label has been set or not. That way we also reduce to half, the amount of times the label-pr runs. It also minimizes the errors that appear for the label-pr.yml workflow.
Use Cases
Checklist