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

chore: quick fix on notation policy command print out #764

Merged
merged 9 commits into from
Aug 17, 2023

Conversation

Two-Hearts
Copy link
Contributor

@Two-Hearts Two-Hearts commented Aug 15, 2023

No description provided.

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
@Two-Hearts Two-Hearts changed the title fix: fixed notation policy command print outs chore: quick fix on notation policy command print out Aug 15, 2023
@priteshbandi
Copy link
Contributor

Can you please share before and after fix cli output sample ?

@Two-Hearts
Copy link
Contributor Author

Two-Hearts commented Aug 16, 2023

Can you please share before and after fix cli output sample ?

@priteshbandi the change is adding a newline character. For example, if the import trustpolicy is invalid, then the output message is:
Warning: existing trust policy configuration file will be overwrittenError: failed to validate trust policy:...
What we want is:

Warning: existing trust policy configuration file will be overwritten
Error: failed to validate trust policy:...

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
@codecov-commenter
Copy link

codecov-commenter commented Aug 16, 2023

Codecov Report

Merging #764 (ca62d93) into main (df2aa57) will not change coverage.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##             main     #764   +/-   ##
=======================================
  Coverage   63.98%   63.98%           
=======================================
  Files          40       40           
  Lines        2252     2252           
=======================================
  Hits         1441     1441           
  Misses        689      689           
  Partials      122      122           
Files Changed Coverage Δ
cmd/notation/policy/import.go 77.35% <100.00%> (ø)

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

shizhMSFT
shizhMSFT previously approved these changes Aug 16, 2023
Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

priteshbandi
priteshbandi previously approved these changes Aug 16, 2023
Copy link
Contributor

@priteshbandi priteshbandi left a comment

Choose a reason for hiding this comment

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

LGTM

@priteshbandi
Copy link
Contributor

@Two-Hearts looks like 5e1c87ef2829276059e9b131193cd03ff6c70119 commit is not signed

JeyJeyGao
JeyJeyGao previously approved these changes Aug 17, 2023
Copy link
Contributor

@JeyJeyGao JeyJeyGao left a comment

Choose a reason for hiding this comment

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

LGTM

@Two-Hearts
Copy link
Contributor Author

Two-Hearts commented Aug 17, 2023

@Two-Hearts looks like 5e1c87ef2829276059e9b131193cd03ff6c70119 commit is not signed

oops, my bad. Signed the commits. @priteshbandi

Copy link
Contributor

@JeyJeyGao JeyJeyGao left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@priteshbandi priteshbandi left a comment

Choose a reason for hiding this comment

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

LGTM

@priteshbandi priteshbandi merged commit 1dc6505 into notaryproject:main Aug 17, 2023
5 checks passed
Two-Hearts added a commit to Two-Hearts/notation that referenced this pull request Aug 18, 2023
)

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Two-Hearts added a commit to Two-Hearts/notation that referenced this pull request Aug 18, 2023
)

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
@Two-Hearts Two-Hearts deleted the errMsg branch August 18, 2023 02:58
@shizhMSFT shizhMSFT mentioned this pull request Nov 6, 2023
6 tasks
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.

5 participants