Skip to content

Commit 6ddfbed

Browse files
committed
small fix
1 parent d67db7f commit 6ddfbed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/github/repositories.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1400,7 +1400,8 @@ func resolveGitReference(ctx context.Context, githubClient *github.Client, owner
14001400
_, _ = ghErrors.NewGitHubAPIErrorToCtx(ctx, "failed to get repository info", resp, err)
14011401
return nil, fmt.Errorf("failed to get repository info: %w", err)
14021402
}
1403-
ref = repoInfo.GetDefaultBranch()
1403+
ref = fmt.Sprintf("refs/heads/%s", repoInfo.GetDefaultBranch())
1404+
14041405
}
14051406

14061407
var reference *github.Reference

0 commit comments

Comments
 (0)