mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-21 15:10:38 +02:00
Migrations should never use model structs directly, because the model structs can be different in different releases. e.g. if one migration uses "User" model, it works in the early releases, then one day, when the User model changes, the migration breaks because it will use the new (incorrect) User model, it should only use the old User model. The same to "modules/structs". --------- Signed-off-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: delvh <dev.lh@web.de>
52 lines
1.0 KiB
YAML
52 lines
1.0 KiB
YAML
# type CommitStatus struct {
|
|
# ID int64 `xorm:"pk autoincr"`
|
|
# RepoID int64 `xorm:"index"`
|
|
# SHA string
|
|
# TargetURL string
|
|
# }
|
|
-
|
|
id: 10010
|
|
repo_id: 100
|
|
sha: sha-shared
|
|
target_url: /testuser/repo1/actions/runs/7/jobs/0
|
|
-
|
|
id: 10011
|
|
repo_id: 100
|
|
sha: sha-shared
|
|
target_url: /testuser/repo1/actions/runs/7/jobs/1
|
|
-
|
|
id: 10012
|
|
repo_id: 100
|
|
sha: sha-shared
|
|
target_url: /testuser/repo1/actions/runs/8/jobs/0
|
|
-
|
|
id: 10013
|
|
repo_id: 100
|
|
sha: sha-other
|
|
target_url: /testuser/repo1/actions/runs/9/jobs/0
|
|
-
|
|
id: 10014
|
|
repo_id: 100
|
|
sha: sha-shared
|
|
target_url: /otheruser/badrepo/actions/runs/7/jobs/0
|
|
-
|
|
id: 10015
|
|
repo_id: 100
|
|
sha: sha-shared
|
|
target_url: /testuser/repo1/actions/runs/10/jobs/0
|
|
-
|
|
id: 10016
|
|
repo_id: 100
|
|
sha: sha-shared
|
|
target_url: /testuser/repo1/actions/runs/7/jobs/3
|
|
-
|
|
id: 10017
|
|
repo_id: 100
|
|
sha: sha-shared
|
|
target_url: https://ci.example.com/build/123
|
|
-
|
|
id: 10018
|
|
repo_id: 100
|
|
sha: sha-shared
|
|
target_url: /testuser/repo1/actions/runs/990/jobs/997
|