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
07a8d450
Commit
07a8d450
authored
4 years ago
by
Angela Nguyen
Browse files
Options
Download
Email Patches
Plain Diff
feat: add GetDefaultBranch to github mock
parent
0986f33d
github-getdefault
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
backend/mock/service/githubmock/githubmock.go
+4
-0
backend/mock/service/githubmock/githubmock.go
with
4 additions
and
0 deletions
+4
-0
backend/mock/service/githubmock/githubmock.go
+
4
-
0
View file @
07a8d450
...
...
@@ -47,6 +47,10 @@ func (s svc) GetCommit(ctx context.Context, ref *github.RemoteRef) (*github.Comm
panic
(
"implement me"
)
}
func
(
s
svc
)
GetDefaultBranch
(
ctx
context
.
Context
,
ref
*
github
.
RemoteRef
)
(
string
,
error
)
{
panic
(
"implement me"
)
}
func
NewAsService
(
*
any
.
Any
,
*
zap
.
Logger
,
tally
.
Scope
)
(
service
.
Service
,
error
)
{
return
New
(),
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