summaryrefslogtreecommitdiffstats
path: root/models/pull.go
diff options
context:
space:
mode:
authorlstahlman <lstahlman@users.noreply.github.com>2016-08-10 11:38:44 -0700
committer无闻 <u@gogs.io>2016-08-10 11:38:44 -0700
commitea192147ea3a377905f0cae6eed14660c35bb086 (patch)
tree1b706617c76ed4214fa885e4ed2aaab5218fe291 /models/pull.go
parent99812a80fd1b1336e992c0967be603e146f78729 (diff)
downloadgitea-ea192147ea3a377905f0cae6eed14660c35bb086.tar.gz
gitea-ea192147ea3a377905f0cae6eed14660c35bb086.zip
Add test pull request task on merging a PR. Fixes #3396 (#3425)
Diffstat (limited to 'models/pull.go')
-rw-r--r--models/pull.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/pull.go b/models/pull.go
index f5198d8712..1710bff6b7 100644
--- a/models/pull.go
+++ b/models/pull.go
@@ -253,6 +253,7 @@ func (pr *PullRequest) Merge(doer *User, baseGitRepo *git.Repository) (err error
return fmt.Errorf("PrepareWebhooks: %v", err)
}
go HookQueue.Add(pr.BaseRepo.ID)
+ go AddTestPullRequestTask(pr.BaseRepo.ID, pr.BaseBranch)
return nil
}