node-pre-gyp-github icon indicating copy to clipboard operation
node-pre-gyp-github copied to clipboard

Fix options infocation

Open SemiConscious opened this issue 1 year ago • 1 comments

Hi There.

Thanks for this incredibly useful action! But I believe I found a flaw: I was unable to get the --release switch to work.

After checking the commander documentation and after experimenting in practice, it seems that the --release and --silent options are effectively ignored, due to the signature of the commander action handler being incorrect. I have removed the first cmd parameter, which I think should only be there if there was an actual argument expected. With no argument, the first parameter in the action handler should be options. This fixes the observed issue of not being able to create non-draft releases.

I have had a look at your tests and I can't see any that would fail due to --release or --silent not being handled, so I think this may have been an issue for a while.

Hope this helps.

SemiConscious avatar May 12 '24 11:05 SemiConscious

Here's an example run, with the change, and with some additional debug I added:

image

SemiConscious avatar May 12 '24 11:05 SemiConscious

Thanks for your prompt attention! 🥇

SemiConscious avatar May 12 '24 19:05 SemiConscious

Thank you for fixing this issue. On May 12, 2024, at 3:30 PM, SemiConscious @.***> wrote: Thanks for your prompt attention! 🥇

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>

bchr02 avatar May 12 '24 21:05 bchr02