Skip to content

Extend label rule to include other PR events #12892

Extend label rule to include other PR events

Extend label rule to include other PR events #12892

Triggered via push April 1, 2024 22:06
Status Failure
Total duration 56s
Artifacts

build.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

54 errors
build: scm/github/webhook.go#L333
unknown field Labels in struct literal of type types.PullRequest
build: compiler/native/compile.go#L73
unknown field Label in struct literal of type pipeline.RuleData
build
Process completed with exit code 2.
[golangci] cmd/vela-server/compiler.go#L7: cmd/vela-server/compiler.go#L7
could not import github.com/go-vela/server/compiler/native (-: # github.com/go-vela/server/compiler/native
[golangci] compiler/native/compile.go#L73: compiler/native/compile.go#L73
unknown field Label in struct literal of type pipeline.RuleData) (typecheck)
[golangci] compiler/native/clone.go#L1: compiler/native/clone.go#L1
: # github.com/go-vela/server/compiler/native [github.com/go-vela/server/compiler/native.test]
[golangci] compiler/native/compile.go#L73: compiler/native/compile.go#L73
unknown field Label in struct literal of type pipeline.RuleData (typecheck)
[golangci] database/repo/count.go#L1: database/repo/count.go#L1
: # github.com/go-vela/server/database/repo [github.com/go-vela/server/database/repo.test]
[golangci] database/repo/repo_test.go#L214: database/repo/repo_test.go#L214
unknown field Labeled in struct literal of type actions.Pull
[golangci] database/repo/repo_test.go#L215: database/repo/repo_test.go#L215
unknown field Unlabeled in struct literal of type actions.Pull (typecheck)
[golangci] database/secret/count.go#L1: database/secret/count.go#L1
: # github.com/go-vela/server/database/secret [github.com/go-vela/server/database/secret.test]
[golangci] database/secret/secret_test.go#L239: database/secret/secret_test.go#L239
unknown field Labeled in struct literal of type actions.Pull
[golangci] database/secret/secret_test.go#L240: database/secret/secret_test.go#L240
unknown field Unlabeled in struct literal of type actions.Pull (typecheck)
[golangci] router/middleware/compiler_test.go#L13: router/middleware/compiler_test.go#L13
could not import github.com/go-vela/server/compiler/native (-: # github.com/go-vela/server/compiler/native
[golangci] compiler/native/compile.go#L73: compiler/native/compile.go#L73
unknown field Label in struct literal of type pipeline.RuleData) (typecheck)
[golangci] router/middleware/scm_test.go#L12: router/middleware/scm_test.go#L12
could not import github.com/go-vela/server/scm/github (-: # github.com/go-vela/server/scm/github
[golangci] scm/github/webhook.go#L333: scm/github/webhook.go#L333
unknown field Labels in struct literal of type types.PullRequest) (typecheck)
[golangci] router/middleware/perm/perm_test.go#L22: router/middleware/perm/perm_test.go#L22
could not import github.com/go-vela/server/scm/github (-: # github.com/go-vela/server/scm/github
[golangci] scm/github/webhook.go#L333: scm/github/webhook.go#L333
unknown field Labels in struct literal of type types.PullRequest) (typecheck)
[golangci] router/middleware/pipeline/pipeline_test.go#L17: router/middleware/pipeline/pipeline_test.go#L17
could not import github.com/go-vela/server/compiler/native (-: # github.com/go-vela/server/compiler/native
[golangci] compiler/native/compile.go#L73: compiler/native/compile.go#L73
unknown field Label in struct literal of type pipeline.RuleData) (typecheck)
[golangci] router/middleware/pipeline/pipeline_test.go#L25: router/middleware/pipeline/pipeline_test.go#L25
could not import github.com/go-vela/server/scm/github (-: # github.com/go-vela/server/scm/github
[golangci] scm/github/webhook.go#L333: scm/github/webhook.go#L333
unknown field Labels in struct literal of type types.PullRequest) (typecheck)
[golangci] scm/github/access.go#L1: scm/github/access.go#L1
: # github.com/go-vela/server/scm/github [github.com/go-vela/server/scm/github.test]
[golangci] scm/github/webhook.go#L333: scm/github/webhook.go#L333
unknown field Labels in struct literal of type types.PullRequest (typecheck)
[golangci] database/pipeline/create.go#L3: database/pipeline/create.go#L3
3-53 lines are duplicate of `database/pipeline/update.go:3-54` (dupl)
[golangci] database/pipeline/update.go#L3: database/pipeline/update.go#L3
3-54 lines are duplicate of `database/pipeline/create.go:3-53` (dupl)
[golangci] database/deployment/create.go#L3: database/deployment/create.go#L3
3-33 lines are duplicate of `database/deployment/update.go:3-32` (dupl)
[golangci] database/deployment/update.go#L3: database/deployment/update.go#L3
3-32 lines are duplicate of `database/deployment/create.go:3-33` (dupl)
[golangci] mock/server/schedule.go#L3: mock/server/schedule.go#L3
3-142 lines are duplicate of `mock/server/secret.go:4-180` (dupl)
[golangci] database/worker/create.go#L3: database/worker/create.go#L3
3-36 lines are duplicate of `database/worker/update.go:3-36` (dupl)
[golangci] database/worker/update.go#L3: database/worker/update.go#L3
3-36 lines are duplicate of `database/worker/create.go:3-36` (dupl)
[golangci] mock/server/authentication.go#L41: mock/server/authentication.go#L41
string `error` has 4 occurrences, make it a constant (goconst)
[golangci] queue/redis/ping_test.go#L8: queue/redis/ping_test.go#L8
File is not `goimports`-ed (goimports)
[golangci] database/schedule/count.go#L6: database/schedule/count.go#L6
File is not `goimports`-ed (goimports)
[golangci] database/schedule/count_active.go#L6: database/schedule/count_active.go#L6
File is not `goimports`-ed (goimports)
[golangci] queue/redis/route_test.go#L62: queue/redis/route_test.go#L62
G601: Implicit memory aliasing in for loop. (gosec)
[golangci] database/pipeline/update.go#L15: database/pipeline/update.go#L15
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] database/pipeline/count.go#L12: database/pipeline/count.go#L12
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] database/pipeline/get.go#L14: database/pipeline/get.go#L14
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] secret/vault/refresh_test.go#L45: secret/vault/refresh_test.go#L45
unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] secret/vault/refresh_test.go#L71: secret/vault/refresh_test.go#L71
unused-parameter: parameter 'in' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] secret/vault/refresh_test.go#L108: secret/vault/refresh_test.go#L108
unused-parameter: parameter 'in' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] secret/vault/refresh_test.go#L128: secret/vault/refresh_test.go#L128
unused-parameter: parameter 'in' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] secret/vault/refresh_test.go#L201: secret/vault/refresh_test.go#L201
unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] queue/redis/redis_test.go#L91: queue/redis/redis_test.go#L91
var `_steps` is unused (unused)
[golangci] database/resource.go#L29: database/resource.go#L29
Non-inherited new context, use function like `context.WithXXX` instead (contextcheck)
[golangci] database/resource.go#L40: database/resource.go#L40
Non-inherited new context, use function like `context.WithXXX` instead (contextcheck)
[golangci] database/resource.go#L53: database/resource.go#L53
Non-inherited new context, use function like `context.WithXXX` instead (contextcheck)
[golangci] compiler/template/starlark/starlark.go#L131: compiler/template/starlark/starlark.go#L131
only one cuddle assignment allowed before if statement (wsl)
[golangci] database/schedule/create.go#L3: database/schedule/create.go#L3
directive `//nolint:dupl // ignore similar code with update.go` is unused for linter "dupl" (nolintlint)
[golangci] secret/vault/count.go#L37: secret/vault/count.go#L37
directive `//nolint:staticcheck // ignore false positive` is unused for linter "staticcheck" (nolintlint)
[golangci] secret/vault/get.go#L40: secret/vault/get.go#L40
directive `//nolint:ineffassign,staticcheck // ignore false positive` is unused for linter "staticcheck" (nolintlint)
[golangci] secret/vault/list.go#L45: secret/vault/list.go#L45
directive `//nolint:staticcheck // ignore false positive` is unused for linter "staticcheck" (nolintlint)