Explorar o código

Add test pull request task on merging a PR. Fixes #3396 (#3425)

lstahlman %!s(int64=8) %!d(string=hai) anos
pai
achega
ea192147ea
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      models/pull.go

+ 1 - 0
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
 }