10000 feat(cli): add file parameter to verify command by sebasnabas · Pull Request #280 · cocogitto/cocogitto · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(cli): add file parameter to verify command #280

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

Merged
merged 3 commits into from
May 4, 2023

Conversation

sebasnabas
Copy link
Contributor

"cog verify" can now read the commit message from a file with the "-f" or "--file" parameter. This parameter is mutually exclusive with the "message" argument.

implement #279

@codecov
Copy link
codecov bot commented Apr 16, 2023

Codecov Report

Merging #280 (25b85db) into main (af08a7e) will increase coverage by 0.01%.
The diff coverage is 86.66%.

@@            Coverage Diff             @@
##             main     #280      +/-   ##
==========================================
+ Coverage   85.68%   85.70%   +0.01%     
==========================================
  Files          43       43              
  Lines        5918     5926       +8     
==========================================
+ Hits         5071     5079       +8     
  Misses        847      847              
Impacted Files Coverage Δ
src/bin/cog/main.rs 47.86% <85.71%> (+1.61%) ⬆️
src/conventional/changelog/template.rs 94.68% <100.00%> (+0.86%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

"cog verify" can now read the commit message from a file with the "-f" or "--file" parameter. This parameter is mutually exclusive with the "message" argument.

implement cocogitto#279
@sebasnabas sebasnabas force-pushed the feat/verify-command-file-support branch from 1fe9a43 to b6c9b3b Compare April 17, 2023 18:38
@oknozor
Copy link
Collaborator
oknozor commented May 2, 2023

Hey @sebasnabas thanks for the PR!
Can you fix the clippy lints so I can merge this ?

sebasnabas added 2 commits May 2, 2023 09:55
Details can be seen in clap-rs/clap#4733.
Using Subcommand with old clap versions causes clippy 1.69 to complain.
In this case it was:
```
error: this looks like you are trying to swap `arg` and `cmd`
   --> src/bin/cog/main.rs:292:23
```
@sebasnabas
Copy link
Contributor Author

@oknozor Just did! I had to bump clap as well (See clap-rs/clap#4733)

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
0