feat(config): Add options to skip commit and push prompts#504
Open
Sma1lboy wants to merge 1 commit intodi-sukharev:devfrom
Open
feat(config): Add options to skip commit and push prompts#504Sma1lboy wants to merge 1 commit intodi-sukharev:devfrom
Sma1lboy wants to merge 1 commit intodi-sukharev:devfrom
Conversation
Owner
|
hi @Sma1lboy please target your PR to dev branch |
Author
got it, I'll do it tonight |
Owner
|
you need to merge dev into your branch manually |
23cbd04 to
4cc31a7
Compare
Author
|
hi @di-sukharev di, I just manually merged it. |
di-sukharev
reviewed
Aug 2, 2025
| ); | ||
|
|
||
| const userAction = skipCommitConfirmation | ||
| const userAction = skipCommitConfirmation || config.OCO_SKIP_COMMIT_CONFIRM |
Owner
There was a problem hiding this comment.
aint skipCommitConfirmation does exactly what you also implemented?
Author
There was a problem hiding this comment.
I'm so sorry for late response. You're right, but I really prefer to put it at the config level rather than using oco --yes every time, although I could create an alias in my shell environment. 🤔
From another perspective, I want to keep the config standard and make this content worthy of being managed through config for a unified trigger process.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces one new configuration options to streamline the commit workflow by skipping unnecessary confirmation steps.
I've been using these changes locally and they have significantly improved my workflow, allowing for faster commits with readable messages without the interruption of prompts. I believe this will be a valuable addition for many users who prefer a more automated process.
Changes:
OCO_SKIP_COMMIT_CONFIRM: When set totrue, this option skips the commit message confirmation prompt and automatically commits with the generated message. This is useful for users who trust the generated messages and want to speed up their workflow.These options can be configured via environment variables or the
opencommitconfig file.Local Usage Log:
Here's an example of the streamlined workflow in action from my local environment:
I hope this pull request will be accepted. The constant prompting can be tedious, and this change provides a much-needed quality-of-life improvement for users who want a faster, more direct commit process.