Skip to content
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

Fix labeler configuration for v5 #9973

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Fix labeler configuration for v5 #9973

merged 1 commit into from
Jan 3, 2024

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Jan 2, 2024

This was merged accidentally because it was green, though it was incompatible. Version 5 restructured the whole configuration file and can now label based on head or base branch names, even though we currently don't use this.

Contains a temporary commit to test out the config correctly.

Fixes: 70b2144 ("Bump actions/labeler from 4 to 5")

This was merged accidentally because it was green, though it was
incompatible. Version 5 restructured the whole configuration file and
can now label based on head or base branch names, even though we
currently don't use this.

Fixes: 70b2144 ("Bump actions/labeler from 4 to 5")
@adamruzicka
Copy link
Contributor

Is the "Pull Request Labeler / triage (pull_request_target)" expected to pass now?

@ekohl
Copy link
Member Author

ekohl commented Jan 3, 2024

I think so, but it's not so I'll dive deeper. Or revert the bump again for now

@evgeni
Copy link
Member

evgeni commented Jan 3, 2024

It will only pass after this has been merged to the main branch (don't ask)

- pull_request_target
- pull_request
Copy link
Member

Choose a reason for hiding this comment

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

this won't work, pull_request created workflows don't have sufficient permissions to change labels (if they are created from a fork).

Copy link
Member Author

Choose a reason for hiding this comment

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

Note that is from the [TMP] commit.

Copy link
Member

@evgeni evgeni left a comment

Choose a reason for hiding this comment

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

The changes to the labeler.yml LGTM, the ones to the workflow do not.

@ekohl
Copy link
Member Author

ekohl commented Jan 3, 2024

The changes to the labeler.yml LGTM, the ones to the workflow do not.

They may look good, but it's not working. This PR is from the repo itself and I've changed the trigger so this should be using the new config, right?

@evgeni
Copy link
Member

evgeni commented Jan 3, 2024

The changes to the labeler.yml LGTM, the ones to the workflow do not.

They may look good, but it's not working. This PR is from the repo itself and I've changed the trigger so this should be using the new config, right?

No. It takes the config from the target. If you want the config from the PR, you need to hack more :)

https://github.com/actions/labeler#using-configuration-path-input-together-with-the-actionscheckout-action

Edit: interestingly, https://github.com/actions/labeler#updating-major-version-of-the-labeler says it should work the way you did it… But.…

Edit2: We all are a tad blind. There are two runs:

evgeni
evgeni previously approved these changes Jan 3, 2024
@evgeni evgeni merged commit 82d11ab into develop Jan 3, 2024
4 of 10 checks passed
@evgeni evgeni deleted the fix-labeler-v5 branch January 3, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants