Commit 714995cd86
Verified · cmc
Layout: unified · split
internal/hookd/hookd.go −5
| @@ -278,11 +278,6 @@ func (s *Server) postReceive(req Request) { | ||
| 278 | 278 | control.RefsUpdated(s.st, s.cfg, req.RepoID, req.UserID, req.Scope, req.Updates) |
| 279 | 279 | } |
| 280 | 280 | |
| 281 | // queueTagBuilds runs the jobs whose tag pattern matches a pushed tag. | |
| 282 | func (s *Server) queueTagBuilds(repo store.Repo, userID int64, tag, pushed string) { | |
| 283 | control.QueueTagBuilds(s.st, s.cfg, repo, userID, tag, pushed) | |
| 284 | } | |
| 285 | ||
| 286 | 281 | // Ask sends one request from the hook process to the daemon. stream is |
| 287 | 282 | // called if the daemon asks for the incoming commit objects; it hands each |
| 288 | 283 | // commit to the callback, which writes it on the wire. |
internal/hookd/pushshapes_test.go +1 −1
| @@ -354,7 +354,7 @@ var pushShapes = []pushShape{ | ||
| 354 | 354 | f.git(f.src, "tag", "v1") |
| 355 | 355 | f.sync() |
| 356 | 356 | f.mark(f.base) |
| 357 | f.srv.queueTagBuilds(f.repo, f.uid, "v1", f.base) | |
| 357 | control.QueueTagBuilds(f.st, f.srv.cfg, f.repo, f.uid, "v1", f.base) | |
| 358 | 358 | }, []string{"—", "—", "—", "—", "queued", "—"}}, |
| 359 | 359 | |
| 360 | 360 | {"schedule tick on the default branch", func(f *shapeFixture) { |