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(core): Add optional prefix for commit messages #2

Merged
merged 2 commits into from
Oct 13, 2024
Merged

Conversation

tab
Copy link
Owner

@tab tab commented Oct 13, 2024

Introduced a --prefix flag to allow users to set an optional prefix for the commit message.
The prefix can be specified using either --prefix <prefix> or -p <prefix> when invoking the command.

@codecov-commenter
Copy link

codecov-commenter commented Oct 13, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 57.34%. Comparing base (84a3cea) to head (75f91f6).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
cmd/main.go 0.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master       #2      +/-   ##
==========================================
+ Coverage   54.32%   57.34%   +3.01%     
==========================================
  Files           7        7              
  Lines         208      211       +3     
==========================================
+ Hits          113      121       +8     
+ Misses         88       83       -5     
  Partials        7        7              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Introduced a '--prefix' flag to allow users to set an optional prefix for the commit message. The prefix can be specified using either '--prefix <prefix>' or '-p <prefix>' when invoking the command. This enhancement improves the flexibility of commit message formatting.
…io.Writer for output

This change modifies the PrintVersion and PrintHelp methods to take an io.Writer as an argument, allowing for more flexible output handling. This allows the methods to write to different outputs, such as os.Stdout or any other writer. Additionally, improved test cases for these methods to ensure proper functionality.
@tab tab merged commit 834cecc into master Oct 13, 2024
2 of 3 checks passed
@tab tab deleted the feature/prefix branch October 13, 2024 14:10
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