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 RepositoriesService.CompareCommitsRaw method. #1582

Open
wants to merge 2 commits into
base: master
from

Conversation

@bradleymcallister97
Copy link

bradleymcallister97 commented Jul 21, 2020

Follows the same high-level pattern as set out in PR #481 with PullRequestsService.GetRaw method.

Follows the same high-level pattern as set out in PR #481 with
PullRequestsService.GetRaw method.
@googlebot googlebot added the cla: yes label Jul 21, 2020
@codecov
Copy link

codecov bot commented Jul 21, 2020

Codecov Report

Merging #1582 into master will increase coverage by 0.00%.
The diff coverage is 68.42%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1582   +/-   ##
=======================================
  Coverage   67.95%   67.95%           
=======================================
  Files          96       96           
  Lines        8762     8781   +19     
=======================================
+ Hits         5954     5967   +13     
- Misses       1898     1902    +4     
- Partials      910      912    +2     
Impacted Files Coverage Δ
github/repos_commits.go 65.00% <68.42%> (+0.64%) ⬆️

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 e881974...0b3b61c. Read the comment docs.

Copy link
Collaborator

gmlewis left a comment

Thank you, @bradleymcallister97 !
After one minor comment tweak, this LGTM.

Then we will be ready for a second LGTM before merging.

@@ -241,6 +240,34 @@ func (s *RepositoriesService) CompareCommits(ctx context.Context, owner, repo st
return comp, resp, nil
}

// CompareCommitsRaw compares a range of commits with each other in raw (diff or patch) format.
//

This comment has been minimized.

Copy link
@gmlewis

gmlewis Jul 23, 2020

Collaborator

Can you please add the following comments from the official docs?

Suggested change
//
//
// Both "base" and "head" must be branch names in "repo".
// To compare branches across other repositories in the same network as "repo",
// use the format "<USERNAME>:branch".
//
@gmlewis gmlewis requested a review from wesleimp Jul 23, 2020
@bradleymcallister97 bradleymcallister97 requested a review from gmlewis Jul 24, 2020
Copy link
Collaborator

gmlewis left a comment

Thank you, @bradleymcallister97 !
LGTM.

Awaiting second LGTM before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.