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 options infocation #46

Merged
merged 1 commit into from
May 12, 2024
Merged

Conversation

SemiConscious
Copy link
Contributor

@SemiConscious SemiConscious commented May 12, 2024

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.

Remove incorrect parameter from the action handler function
@SemiConscious
Copy link
Contributor Author

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

image

@bchr02 bchr02 merged commit 115ab23 into bchr02:master May 12, 2024
3 checks passed
@SemiConscious
Copy link
Contributor Author

Thanks for your prompt attention! 🥇

@bchr02
Copy link
Owner

bchr02 commented May 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants