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
Tries to create label when label already exists #69
Comments
Hi @ces131, Do you have a link to your repo/workflow please? |
Due to confidentiality I can't show the original repo, but I created a test one I can share. While trying to reproduce this, I ran into a different problem with the color field being flagged as nil for The latest run: https://github.com/ces131/WiCSRules/actions/runs/72109424 |
Should every value have quotes (name, description, and color)? I noticed in the readme all of descriptions are in quotes and just the |
Yes, it would be safer (I will update the README).
I deliberately put this color in double quotes because it would be interpreted as int and would cause an invalid request exception (see parameters type from GitHub API). |
Awesome, sounds great. I will fix this and confirm/close this issue. Thanks for your help!! |
@ces131 You're welcome. Keep me in touch. |
Hmm I'm still running into the same original problem with it trying to create a label that already exists. The test repo I created isn't having the same issue, I'll keep messing with it/trying to recreate it |
@ces131 Can you paste your workflow file and |
Here's the log of Running the labeler:
(removed the sensitive label names) file of labels found in '.github/labels/config.yml:
and the workflow file:
the action was triggered when I attempted to add a new label using the github UI |
@ces131 Can you give me the current config of |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
It doesn't show up under current labels actually @crazy-max It shows the label before it as the last one I also tried swapping the order of the tags in the config.yml file with no luck. If I directly update the |
@ces131 How many labels do you have on this repo? (> 100?) |
@crazy-max There are only 30 labels, but if it we can get it working we plan to use it in a repo with around 250 labels |
@ces131 Can you test with |
Did I put it in the workflow file correctly?/how you're suggesting? :
If so, I'm getting this error:
sorry for the delay. there was a pretty big power outage |
Hi @ces131, yes your workflow is correct, can you try again? |
It works! It's recognizing the label and skipping over it. @crazy-max |
Ok nice! I will merge this branch and create a new release, keep you in touch! |
@crazy-max awesome, thanks so much! Really appreciate all of the work 💯 |
@ces131 Should be ok to bring back |
@crazy-max cool! thanks again!! |
Hi! I've been testing out different action for syncing labels in a repo and your action lines up perfectly with what we need.
I keep running into an issue where the action doesn't recognize one of my labels right away. When running the action then it attempts to create the label then fails saying a label with that name already exists:
The label is listed under my labels with the same fields above. All of the other labels are properly being skipped over, but I'm unsure why this one isn't?
I also tried using the
from_name:
withwontfix
and it says the label can't be found in order to rename it.Let me know if there's any more information you need to help with this or if you have any guidance/things to try to fix this issue! Thanks!
The text was updated successfully, but these errors were encountered: