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

feat(main): #82 edit and confirm with editor #83

Merged
merged 2 commits into from
Feb 11, 2024

Conversation

Everduin94
Copy link
Owner

Added config confirm_with_editor to open GIT_EDITOR / EDITOR. Default false.

Closes: #82

Added config confirm_with_editor to open GIT_EDITOR / EDITOR. Default false.

Closes: #82
if (config.confirm_with_editor) {
const options = config.overrides.shell ? { shell: config.overrides.shell, stdio: 'inherit' } : { stdio: 'inherit' }
const trailer = commit_state.trailer ? `--trailer="${commit_state.trailer}"` : '';
execSync(`git commit -m "${build_commit_string(commit_state, config, false, true, false)}" ${trailer} --edit`, options);
Copy link
Owner Author

@Everduin94 Everduin94 Feb 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There doesn't seem to be a type for {shell, stdio} (but there are types for each individually). Not sure if they're incompatible together, or I'm just missing a type casting?

@Everduin94 Everduin94 merged commit 69d9d98 into main Feb 11, 2024
github-actions bot pushed a commit that referenced this pull request Feb 11, 2024
# [1.12.0](v1.11.0...v1.12.0) (2024-02-11)

### Features

* **main:** [#82](#82) edit and confirm with editor ([#83](#83)) ([69d9d98](69d9d98))
Copy link

🎉 This PR is included in version 1.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Allow $EDITOR to display final confirmation
1 participant