summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-01 19:26:39 -0400
committerUnknwon <u@gogs.io>2015-09-01 19:26:39 -0400
commitebf1bd4f518971253e0a7a0e923645c1d584e03e (patch)
tree4ada3c53f5cef5928405370e4c528789112b7549 /models
parent8c046073a891e3a192794869628763ef072002eb (diff)
downloadgitea-ebf1bd4f518971253e0a7a0e923645c1d584e03e.tar.gz
gitea-ebf1bd4f518971253e0a7a0e923645c1d584e03e.zip
add view pull desc
Diffstat (limited to 'models')
-rw-r--r--models/issue.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/issue.go b/models/issue.go
index e9eeb4889e..fd93e946fc 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -851,9 +851,10 @@ type PullRepo struct {
HeadRepoID int64 `xorm:"UNIQUE(s)"`
HeadRepo *Repository `xorm:"-"`
BaseRepoID int64 `xorm:"UNIQUE(s)"`
- HeadBarcnh string `xorm:"UNIQUE(s)"`
- BaseBranch string `xorm:"UNIQUE(s)"`
- MergeBase string `xorm:"VARCHAR(40)"`
+ HeadUserName string
+ HeadBarcnh string `xorm:"UNIQUE(s)"`
+ BaseBranch string `xorm:"UNIQUE(s)"`
+ MergeBase string `xorm:"VARCHAR(40)"`
Type PullRequestType
CanAutoMerge bool
}
@@ -871,7 +872,6 @@ func (pr *PullRepo) AfterSet(colName string, _ xorm.Cell) {
// NewPullRequest creates new pull request with labels for repository.
func NewPullRequest(repo *Repository, pr *Issue, labelIDs []int64, uuids []string, pullRepo *PullRepo, patch []byte) (err error) {
-
sess := x.NewSession()
defer sessionRelease(sess)
if err = sess.Begin(); err != nil {