Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Clutch
Commits
219a4a8b
Commit
219a4a8b
authored
3 years ago
by
SHAWNA MONERO
Browse files
Options
Download
Email Patches
Plain Diff
change names again
parent
4a4d9ddb
commitsViaComparison
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
backend/service/github/github.go
+3
-3
backend/service/github/github.go
with
3 additions
and
3 deletions
+3
-3
backend/service/github/github.go
+
3
-
3
View file @
219a4a8b
...
...
@@ -366,10 +366,10 @@ func (s *svc) CompareCommits(ctx context.Context, ref *RemoteRef, compareSHA str
* of commits, rather than calling GetCommit() multiple times.
* compareSHA is the base (parent) while the ref.ref is the head
*/
func
(
s
*
svc
)
CommitRange
(
ctx
context
.
Context
,
compar
eSHA
string
,
ref
*
RemoteRef
)
([]
*
githubv3
.
RepositoryCommit
,
error
)
{
comp
,
_
,
err
:=
s
.
rest
.
Repositories
.
CompareCommits
(
ctx
,
ref
.
RepoOwner
,
ref
.
RepoName
,
compar
eSHA
,
ref
.
Ref
)
func
(
s
*
svc
)
CommitRange
(
ctx
context
.
Context
,
bas
eSHA
string
,
ref
*
RemoteRef
)
([]
*
githubv3
.
RepositoryCommit
,
error
)
{
comp
,
_
,
err
:=
s
.
rest
.
Repositories
.
CompareCommits
(
ctx
,
ref
.
RepoOwner
,
ref
.
RepoName
,
bas
eSHA
,
ref
.
Ref
)
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"could not get commits from comparison for %s and %s in %s/%s. %+v"
,
ref
.
Ref
,
compareSHA
,
ref
.
RepoOwner
,
ref
.
RepoName
,
err
)
return
nil
,
fmt
.
Errorf
(
"could not get commits from comparison for %s and %s in %s/%s. %+v"
,
baseSHA
,
ref
.
Ref
,
ref
.
RepoOwner
,
ref
.
RepoName
,
err
)
}
return
comp
.
Commits
,
nil
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help