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

Labeler is syncing labels when sync-labels property is false #104

Closed
joncolas opened this issue Oct 1, 2020 · 2 comments
Closed

Labeler is syncing labels when sync-labels property is false #104

joncolas opened this issue Oct 1, 2020 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@joncolas
Copy link

joncolas commented Oct 1, 2020

Having created a branch with an empty commit, I create a PR with some tags added manually, then labeler github action is executed and removes (synchronize) all labels that I have defined in the file labeler.yml complying with the file rules.

I tried with sync-labels unset and set to false.

github action log:

Run actions/labeler@main
  with:
    repo-token: ***
    sync-labels: false
    configuration-path: .github/labeler.yml

image

I think this should not happen with the sync-labels set to false, any advice?

stevecotton added a commit to wesnoth/wesnoth that referenced this issue Oct 12, 2020
The sync-labels option was expected to accept "true" or "false" with "false"
being the default.  However, these are currently being converted to boolean
using the Ecmascript `!` operator, which converts both of those strings to
True.  Pass the empty string instead to get the value False.

actions/labeler#104
@Holzhaus
Copy link

I can reproduce it. I'll try to mitigate the issue using the workaround from wesnoth/wesnoth@958c82d.

anonymouse64 added a commit to anonymouse64/snapd that referenced this issue Feb 23, 2021
This was suggested in the upstream bug at actions/labeler#104

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
anonymouse64 added a commit to anonymouse64/snapd that referenced this issue Feb 24, 2021
This was suggested in the upstream bug at actions/labeler#104

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
anonymouse64 added a commit to canonical/snapd that referenced this issue Feb 26, 2021
.github/workflows/labeler.yaml: try work-around to not sync labels

This was suggested in the upstream bug at actions/labeler#104

Also apply the YAML linter that my editor applies to every YAML file :-)
@MaksimZhukov
Copy link
Contributor

Hello everyone!
I am closing this issue as a duplicate of this one. Please monitor the bug status in scope of that issue.

@MaksimZhukov MaksimZhukov added the duplicate This issue or pull request already exists label Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants