aboutsummaryrefslogtreecommitdiffstats
path: root/models/pull.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/pull.go')
-rw-r--r--models/pull.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/models/pull.go b/models/pull.go
index fcfcd221c4..3ef631852e 100644
--- a/models/pull.go
+++ b/models/pull.go
@@ -390,6 +390,13 @@ func (pr *PullRequest) GetDefaultSquashMessage() string {
log.Error("LoadIssue: %v", err)
return ""
}
+ if err := pr.LoadBaseRepo(); err != nil {
+ log.Error("LoadBaseRepo: %v", err)
+ return ""
+ }
+ if pr.BaseRepo.UnitEnabled(UnitTypeExternalTracker) {
+ return fmt.Sprintf("%s (!%d)", pr.Issue.Title, pr.Issue.Index)
+ }
return fmt.Sprintf("%s (#%d)", pr.Issue.Title, pr.Issue.Index)
}