Skip to content

Fix withCredetials() to correctly detect missing creds - #1160

Merged
bitwiseman merged 4 commits into
hub4j:mainfrom
bitwiseman:bug/withCreds
May 27, 2021
Merged

bitwiseman merged 4 commits into
hub4j:mainfrom
bitwiseman:bug/withCreds

Conversation

@bitwiseman

@bitwiseman bitwiseman commented May 27, 2021 •

Copy link
Copy Markdown
Member

Description

Fixes #1155

@gsmet @hcoles

If you want to test this fix manually against #1156 or #1157 , that would be helpful.

Before submitting a PR:

We love getting PRs, but we hate asking people for the same basic changes every time.

  • Push your changes to a branch other than main. Create your PR from that branch.
  • Add JavaDocs and other comments
  • Write tests that run and pass in CI. See CONTRIBUTING.md for details on how to capture snapshot data.
  • Run mvn -D enable-ci clean install site locally. If this command doesn't succeed, your change will not pass CI.

When creating a PR:

  • Fill in the "Description" above.
  • Enable "Allow edits from maintainers".

@codecov

codecov Bot commented May 27, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #1160 (0e02444) into main (d091200) will increase coverage by 0.26%.
The diff coverage is 75.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1160      +/-   ##
============================================
+ Coverage     73.29%   73.55%   +0.26%     
- Complexity     1826     1831       +5     
============================================
  Files           185      185              
  Lines          6126     6127       +1     
  Branches        365      365              
============================================
+ Hits           4490     4507      +17     
+ Misses         1416     1400      -16     
  Partials        220      220              
Impacted Files Coverage Δ
...rc/main/java/org/kohsuke/github/GitHubBuilder.java 91.76% <75.00%> (+19.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d091200...0e02444. Read the comment docs.

@hcoles

hcoles commented May 27, 2021

Copy link
Copy Markdown

@bitwiseman I'm afriad this does not resolve #1157

@gsmet gsmet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Perfect, thanks!

@gsmet

gsmet commented May 27, 2021

Copy link
Copy Markdown
Contributor

Yeah #1157 looks like another issue.

@bitwiseman
bitwiseman merged commit 196ee25 into hub4j:main May 27, 2021
@bitwiseman
bitwiseman deleted the bug/withCreds branch May 27, 2021 16:03
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.

Problematic regression with ~/.github file authentication

3 participants