-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Fully disable task with --no-release-draft
#513
Conversation
When running with --no-release-draft, fully disable the task instead of just skipping it, thereby completely hiding it from the task list. Similar options like --no-cleanup, --no-tests, and --no-publish behave the same way.
I'm a bit conflicted on this. |
To be clear, I’d be okay with both approaches and mostly opened this pull request to start a discussion around this behavior. I’ve leaned towards completely hiding the task because, if one explicitly disables the task using Edit: Of course, this still leaves the question whether to use |
I think it makes sense to completely hide it if the user explicitly passes a flag to do so. And skip it if it cannot run for some other reason, for example, if the repo is not GitHub. We should probably audit the codebase to ensure we do this consistently. |
Is there any difference between |
After giving it some thought, I wonder if this is actually what users would want. If I regularly use
Looking at listr’s source code, I don’t think there is. |
Good point. I guess there's no universal rule for this. We have to evaluate on a case-by-case basis. Can you do a best effort and we can discuss?
I guess we can just use |
--no-release-draft
Bump :) |
Most flags already follow the convention of completely hiding the task when explicitly specified (for example,
I’d suggest changing all of them to |
Good points. I agree. Let's do that. |
Most flags completely disable the task when explicitly specified (for example, `--no-cleanup` or `--no-tests` but also `--yolo`). This commit standardizes that behavior across all tasks. See sindresorhus#513 (comment).
Most flags completely disable the task when explicitly specified (for example, `--no-cleanup` or `--no-tests` but also `--yolo`). This commit standardizes that behavior across all tasks. See sindresorhus#513 (comment).
As the goal shifted quite a bit, I’ve opened a new pull request to standardize this behavior of skipping and enabling tasks. |
When running with
--no-release-draft
, fully disable the task instead of just skipping it, thereby completely hiding it from the task list. Similar options behave the same way.For example, the “Cleanup” task is hidden when running with
--no-cleanup
:However, the “Creating release draft on GitHub” task is listed as being skipped when running with
--no-release-draft
: