-
-
Notifications
You must be signed in to change notification settings - Fork 766
(GH-3282) Renamed GitVersionVerbosity values to match GitVersion #3321
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
(GH-3282) Renamed GitVersionVerbosity values to match GitVersion #3321
Conversation
augustoproiete
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joshuacookdev Thanks for PR! One small change needed (see comment) and then it's good to go.
src/Cake.Common.Tests/Unit/Tools/GitVersion/GitVersionRunnerTests.cs
Outdated
Show resolved
Hide resolved
augustoproiete
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Could you squash the commits and push --force?
3e8ca79 to
765db14
Compare
augustoproiete
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Will be merged for Cake v2.0
|
Hey @joshuacookdev, we're preparing to release Cake 2.0 and we can merge this PR now. Could you please rebase on top of current |
|
I reached out to @joshuacookdev via DM on Twitter to help with rebasing his PR (as we don't have permission to do ourselves). If we don't hear from him in the next couple of days I'll open a new PR with the same commit so we can merge |
|
Hey @augustoproiete - I've been out of town this weekend but was planning to rebase and push tonight. Sorry for the hold-up! |
765db14 to
411f799
Compare
|
@augustoproiete rebased and pushed, followed through to make sure tests passed, and there seems to have been an issue on the Azure Build Cake Mac check. I don't think I have the capability to rerun the build, so figured I'd bring it to your attention https://dev.azure.com/cake-build/Cake/_build/results?buildId=21212&view=results |
|
@joshuacookdev Thanks for the heads-up. I re-ran the job that failed and we're green 🟢 again |
|
@augustoproiete @joshuacookdev just having a quick look at this.... do we need to update the descriptions for the enumerated values as well? I don't think they align properly anymore. |
|
@gep13 It doesn't seem that we can easily tell as the GitVersion docs doesn't give any details... @arturcic Would you be able to confirm that the description we have on the enums are still correct? |
|
@augustoproiete I will check and will let you know |
|
Looking at GitVersion the logic essentially is if (verbosity > Verbosity)
{
return;
}and the enum is public enum Verbosity
{
Quiet = 0,
Minimal = 1,
Normal = 2,
Verbose = 3,
Diagnostic = 4
}which should mean
|
|
I would suggest to use the same descriptions as the Cake Verbosity uses, as they have the same meaning |
👀 |
|
To add a point to the discussion, GitVersion has their own documentation formatted that plainly, also. If that's preferred, I can very easily update. Just let me know and I'll include it in the squash/rebase when I update the PR again. |
pascalberger
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As decided on todays meeting comments for GitVersionVerbosity should match the description GitVersion uses for help output on the console.
|
@joshuacookdev Could you please update the // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace Cake.Common.Tools.GitVersion
{
/// <summary>
/// The GitVersion verbosity. Default is <see cref="Normal"/>.
/// </summary>
public enum GitVersionVerbosity
{
/// <summary>
/// Quiet verbosity.
/// </summary>
Quiet = 0,
/// <summary>
/// Minimal verbosity.
/// </summary>
Minimal = 1,
/// <summary>
/// Normal verbosity (Default).
/// </summary>
Normal = 2,
/// <summary>
/// Verbose verbosity.
/// </summary>
Verbose = 3,
/// <summary>
/// Diagnostic verbosity.
/// </summary>
Diagnostic = 4,
}
} |
augustoproiete
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
411f799 to
bfb30e0
Compare
bfb30e0 to
aae1b50
Compare
pascalberger
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
augustoproiete
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@joshuacookdev your changes have been merged, thanks for your contribution 👍 |




Addresses #3282.
Nothing too major, just a simple enum renaming as requested. I'd like to address this question before merging, if possible, but if you guys just want to merge and move on, that's fine with me.