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

Add logs in GitHubClient response. fixes #1594 #1599

Merged
merged 1 commit into from
Jan 25, 2023

Conversation

c3p0-maif
Copy link
Contributor

Description

This PR adds a log in order to debug the GitHub response.
I add the hash of the request to the begginning of the log, in order to identify which response corresponds to which request.

@codecov
Copy link

codecov bot commented Jan 12, 2023

Codecov Report

Base: 79.31% // Head: 79.22% // Decreases project coverage by -0.08% ⚠️

Coverage data is based on head (087b8cb) compared to base (472adbb).
Patch coverage: 23.07% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1599      +/-   ##
============================================
- Coverage     79.31%   79.22%   -0.09%     
- Complexity     2140     2141       +1     
============================================
  Files           206      206              
  Lines          6565     6576      +11     
  Branches        362      364       +2     
============================================
+ Hits           5207     5210       +3     
- Misses         1146     1154       +8     
  Partials        212      212              
Impacted Files Coverage Δ
src/main/java/org/kohsuke/github/GitHubClient.java 86.31% <23.07%> (-2.58%) ⬇️

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@bitwiseman bitwiseman left a comment

Choose a reason for hiding this comment

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

@c3p0-maif
We generally require tests coverage of new code. In this case, there's no test covering the existing code... But there are tests that use lockers to check the output of certain actions. Would you be willing to write a test for this?

@bitwiseman bitwiseman merged commit a222b97 into hub4j:main Jan 25, 2023
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.

2 participants