Repository navigation
Conversation
|
Thanks for the patch, @epuertat! Labeler was behaving incorrectly and your changes corrected that behavior. I took the liberty of updating to the current state of main branch, and adding tests. What this means is we're in the weird position where Doing The Right Thing means a breaking change, since labeler will now behave differently with the same inputs out there in the wild. A load-bearing bug. IMO this necessitates a v4 release and a big callout in the changelog. BeforeBefore this change: if you provide literally any value for AfterAfter this change: you must provide |
|
Thanks for taking care of the tests, @pje! |
|
@pje Any ETA on merging and deploying a new version? We are considering removing the action in SciPy because the sync mechanism is annoying us. I really like the idea of this action and would like to keep it 😃 |
|
Hey. Can you please merge/release this? |
|
Anything we can do to help move this forward and get this merged? |
|
I am sad to say that due to this, we (SciPy) dropped this actions. Hope that this get solved at some point so we can reconsider. |
|
@tupui the workaround for this is fairly easy, you just need to set sync-labels: ""Obviously, this should be fixed but no need to drop the action when there's workaround available :P |
Oh thanks! We sadly dropped it a few months ago already because there was no action there... I just got notified about this with the recent message and thought I would comment again to say we had to take action–as I feared we might need to. A "hack" might not make our maintainer team confident I am afraid. I will keep an eye on this. |
|
Hi @pje, This is a small gentle up: is there anything to be done for this fix to be merged? Major libraries' CI (like SciPy's and scikit-learn's) would largely benefit from this fix. 🙏 |
As a temporary support util actions/labeler#113 is merged.
| const syncLabels = | ||
| core.getInput("sync-labels", { required: false }) === "true"; |
There was a problem hiding this comment.
We can use the getBooleanInput core function to parse a boolean input:
| const syncLabels = | |
| core.getInput("sync-labels", { required: false }) === "true"; | |
| const syncLabels = core.getBooleanInput('sync-labels'); |
There was a problem hiding this comment.
The problem with using getBooleanInput is that it will reject an empty string argument, which will break everyone currently using the workaround of setting sync-labels: ''. That's why in #480 (which yes, is a duplicate) I did something more complex to get around that. While that's still technically a breaking change, it's unlikely to break anyone who wasn't already broken.
|
Hello @epuertat! |
|
@epuertat: Thank you for this contribution, I am looking forward to it being integrated. Are you still working on it? If not, can I supersede it, @MaksimZhukov? 🙂 |
|
@jjerphan @MaksimZhukov @adam-azarchs: please feel free to take over and move forward with this. |
Closes #104
Following syntax at https://github.com/actions/toolkit/blob/master/packages/glob/README.md#recommended-action-inputs