8000 feat(cli): Added get-version feature by andre161292 · Pull Request #248 · cocogitto/cocogitto · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(cli): Added get-version feature #248

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 6 commits into from
Feb 18, 2023

Conversation

andre161292
Copy link
Contributor
@andre161292 andre161292 commented Jan 10, 2023

Added the read-only feature "get-version", that will output the latest version, if any.

Closes #222

@andre161292
Copy link
Contributor Author

I'm sorry, it was too late yesterday.. forgot to rerun reformat and tests once again after changing the selected name for the disable-fallback parameter.

@oknozor
Copy link
Collaborator
oknozor commented Jan 19, 2023

Hey @andre161292 I am sorry but #240 has just been merged and there are now some conflicts.
Also you should adapt the get-version command so it accepts a --package flag for monorepos.

@andre161292
Copy link
Contributor Author

Thanks for the update. I'll update this as soon as i have some spare time 👍

@andre161292
Copy link
Contributor Author

I applied all requested changes, so as soon as there's time, you can do a re-review :)

};

warn!("Current version:");
print!("{}", current_version);
Copy link
Contributor

Choose a reason for hiding this comment

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

@oknozor why do we need an empty line manually added in cog's main? This makes places like this quite confusing 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm with you.. i wondered about my suddenly failing tests, until i discovered the source

@codecov
Copy link
codecov bot commented Feb 7, 2023

Codecov Report

Merging #248 (c13c086) into main (c2e7ab0) will increase coverage by 0.13%.
The diff coverage is 63.09%.

@@            Coverage Diff             @@
##             main     #248      +/-   ##
==========================================
+ Coverage   84.83%   84.96%   +0.13%     
==========================================
  Files          42       43       +1     
  Lines        5579     5601      +22     
==========================================
+ Hits         4733     4759      +26     
+ Misses        846      842       -4     
Impacted Files Coverage Δ
src/bin/cog/commit.rs 10.14% <0.00%> (+0.14%) ⬆️
src/command/log.rs 68.57% <0.00%> (ø)
src/conventional/changelog/error.rs 0.00% <0.00%> (ø)
src/log/output.rs 0.00% <0.00%> (ø)
src/git/error.rs 38.46% <15.38%> (ø)
src/command/bump/mod.rs 79.13% <50.00%> (+1.25%) ⬆️
src/command/bump/monorepo.rs 94.04% <50.00%> (ø)
src/conventional/error.rs 76.92% <50.00%> (ø)
src/git/revspec.rs 94.42% <66.66%> (ø)
src/error.rs 50.00% <75.00%> (ø)
... and 9 more

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

@andre161292 andre161292 force-pushed the feat/get-version branch 2 times, most recently from e87a245 to 6a88d98 Compare February 8, 2023 08:37
@andre161292
Copy link
Contributor Author

Regarding the failing codecov/patch check.. Those errors (except from one) are coming from reformattings across the codebase, that i only did, because of a previously failing lint-check at those locations. I see it as a "falsy"-positive kind of failing check.
Should i fix them too in this PR? Doesn't seem like the right place to do it, though..

@tranzystorekk
Copy link
Contributor

You probably don't need to worry about the coverage too much, it's advisory for the most part

@cocogitto-bot
Copy link
cocogitto-bot bot commented Feb 16, 2023

✔️ d58831b...7ce4aab - Conventional commits check succeeded.

@ghost
Copy link
ghost commented Feb 16, 2023
👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map Legend

@oknozor
Copy link
Collaborator
oknozor commented Feb 17, 2023

As soon as the conflict with main is resolved I think this is ready to be merged @andre161292 :)

@andre161292
Copy link
Contributor Author

Check ✔️

@oknozor oknozor merged commit 5670cd8 into cocogitto:main Feb 18, 2023
@oknozor
Copy link
Collaborator
oknozor commented Feb 18, 2023

Thank you @andre161292 :)

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.

[FEATURE] cog version gives current version (of last tag) even with uncommitted files
3 participants
0