You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-07-12 22:21:40 +02:00
Rename struct field and add new types into server/model's (#523)
Resolve some todos in server/model: * Move persistent queue into its own package * Create Types: StatusValue, SCMKind, RepoVisibly * Rename struct Repo fields: SCMKind, IsSCMPrivate
This commit is contained in:
@ -46,7 +46,7 @@ func Test_hook(t *testing.T) {
|
||||
Name: "test1",
|
||||
FullName: "demo1/test1",
|
||||
Link: "https://coding.net/u/demo1/p/test1",
|
||||
Kind: model.RepoGit,
|
||||
SCMKind: model.RepoGit,
|
||||
}
|
||||
|
||||
build := &model.Build{
|
||||
@ -99,7 +99,7 @@ func Test_hook(t *testing.T) {
|
||||
Name: "test_project",
|
||||
FullName: "kelvin/test_project",
|
||||
Link: "https://coding.net/u/kelvin/p/test_project",
|
||||
Kind: model.RepoGit,
|
||||
SCMKind: model.RepoGit,
|
||||
}
|
||||
actual, err := convertRepository(repository)
|
||||
g.Assert(err).IsNil()
|
||||
@ -113,7 +113,7 @@ func Test_hook(t *testing.T) {
|
||||
Name: "test1",
|
||||
FullName: "demo1/test1",
|
||||
Link: "https://coding.net/u/demo1/p/test1",
|
||||
Kind: model.RepoGit,
|
||||
SCMKind: model.RepoGit,
|
||||
}
|
||||
|
||||
build := &model.Build{
|
||||
@ -149,7 +149,7 @@ func Test_hook(t *testing.T) {
|
||||
Name: "test2",
|
||||
FullName: "demo1/test2",
|
||||
Link: "https://coding.net/u/demo1/p/test2",
|
||||
Kind: model.RepoGit,
|
||||
SCMKind: model.RepoGit,
|
||||
}
|
||||
|
||||
build := &model.Build{
|
||||
@ -179,7 +179,7 @@ func Test_hook(t *testing.T) {
|
||||
Name: "test1",
|
||||
FullName: "demo1/test1",
|
||||
Link: "https://coding.net/u/demo1/p/test1",
|
||||
Kind: model.RepoGit,
|
||||
SCMKind: model.RepoGit,
|
||||
}
|
||||
|
||||
build := &model.Build{
|
||||
|
Reference in New Issue
Block a user