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

Display pull request head branch even the branch deleted or repository deleted #10413

Merged
merged 7 commits into from
Mar 2, 2020
Prev Previous commit
Next Next commit
Merge branch 'master' into lunny/display_deleted_branch
  • Loading branch information
zeripath committed Mar 2, 2020
commit 81566891786ca6cbb7c9f828133544099e10a40b
2 changes: 1 addition & 1 deletion modules/convert/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func ToAPIPullRequest(pr *models.PullRequest) *api.PullRequest {
return nil
}

apiIssue := pr.Issue.APIFormat()
apiIssue := ToAPIIssue(pr.Issue)
if err := pr.LoadBaseRepo(); err != nil {
log.Error("GetRepositoryById[%d]: %v", pr.ID, err)
return nil
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.