Rename to pipeline in DB and JSONs (#1296)

Closes #1282 

Follow-up to #1224, addresses #745

- changes JSON fields
- adds migration to rename columns
- fixes some comments
This commit is contained in:
qwerty287
2022-10-22 15:54:43 +02:00
committed by GitHub
parent 1114595078
commit f88c70b55e
24 changed files with 278 additions and 163 deletions

View File

@@ -32,9 +32,9 @@ type State struct {
type Info struct {
ID string `json:"id"`
Repo string `json:"repository"`
Pipeline string `json:"build_number"`
Started time.Time `json:"build_started"`
Timeout time.Duration `json:"build_timeout"`
Pipeline string `json:"pipeline_number"`
Started time.Time `json:"pipeline_started"`
Timeout time.Duration `json:"pipeline_timeout"`
}
func (s *State) Add(id string, timeout time.Duration, repo, pipeline string) {