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

refactor: replace terminal package used by oras login #910

Merged
merged 13 commits into from
Apr 10, 2023

Conversation

qweeah
Copy link
Contributor

@qweeah qweeah commented Mar 29, 2023

What this PR does / why we need it:
This PR updates the underlying package of oras login with minor refactoring.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #908

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test?
  • Does this change require a documentation update?
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have an appropriate license header?

cmd/oras/login.go Outdated Show resolved Hide resolved
cmd/oras/login.go Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Mar 29, 2023

Codecov Report

Merging #910 (3f93344) into main (981e419) will increase coverage by 0.90%.
The diff coverage is 80.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main     #910      +/-   ##
==========================================
+ Coverage   78.76%   79.67%   +0.90%     
==========================================
  Files          52       53       +1     
  Lines        2840     2853      +13     
==========================================
+ Hits         2237     2273      +36     
+ Misses        429      399      -30     
- Partials      174      181       +7     
Impacted Files Coverage Δ
cmd/oras/root/login.go 68.04% <66.66%> (+24.04%) ⬆️
internal/io/io.go 87.50% <87.50%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@qweeah qweeah requested a review from shizhMSFT March 29, 2023 09:19
cmd/oras/login.go Outdated Show resolved Hide resolved
Copy link
Member

@TerryHowe TerryHowe left a comment

Choose a reason for hiding this comment

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

LGTM

@qweeah qweeah force-pushed the update-term branch 2 times, most recently from 824398a to 84c1f24 Compare March 30, 2023 03:23
internal/io/io.go Show resolved Hide resolved
internal/io/io.go Show resolved Hide resolved
internal/io/io.go Outdated Show resolved Hide resolved
cmd/oras/root/login.go Outdated Show resolved Hide resolved
cmd/oras/root/login.go Outdated Show resolved Hide resolved
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.

Request changes

Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
internal/io/io.go Outdated Show resolved Hide resolved
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
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

@qweeah qweeah merged commit f005e2f into oras-project:main Apr 10, 2023
shizhMSFT pushed a commit to shizhMSFT/oras that referenced this pull request Aug 3, 2023
…#910)

Signed-off-by: Billy Zha <jinzha1@microsoft.com>
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.

Update github.com/moby/term to golang.org/x/term
4 participants