feat: add github app #1070
feat: add github app #1070
reviewdog [golangci] report
reported by reviewdog 🐶
Findings (50)
api/types/executor_test.go|154 col 4| missing type in composite literal (typecheck)
api/types/executor_test.go|162 col 4| missing type in composite literal (typecheck)
api/types/executor_test.go|170 col 4| missing type in composite literal (typecheck)
database/integration_test.go|192 col 16| db.CreateUser undefined (type Interface has no field or method CreateUser) (typecheck)
database/integration_test.go|200 col 16| db.CreateRepo undefined (type Interface has no field or method CreateRepo) (typecheck)
database/integration_test.go|222 col 16| db.CreateBuild undefined (type Interface has no field or method CreateBuild) (typecheck)
database/integration_test.go|230 col 19| db.CountBuilds undefined (type Interface has no field or method CountBuilds) (typecheck)
database/integration_test.go|240 col 18| db.CountBuildsForDeployment undefined (type Interface has no field or method CountBuildsForDeployment) (typecheck)
database/integration_test.go|250 col 18| db.CountBuildsForOrg undefined (type Interface has no field or method CountBuildsForOrg) (typecheck)
database/integration_test.go|260 col 18| db.CountBuildsForRepo undefined (type Interface has no field or method CountBuildsForRepo) (typecheck)
database/integration_test.go|270 col 18| db.CountBuildsForStatus undefined (type Interface has no field or method CountBuildsForStatus) (typecheck)
database/integration_test.go|280 col 18| db.ListBuilds undefined (type Interface has no field or method ListBuilds) (typecheck)
database/integration_test.go|290 col 24| db.ListBuildsForOrg undefined (type Interface has no field or method ListBuildsForOrg) (typecheck)
database/integration_test.go|303 col 24| db.ListBuildsForRepo undefined (type Interface has no field or method ListBuildsForRepo) (typecheck)
database/integration_test.go|315 col 17| db.ListBuildsForDashboardRepo undefined (type Interface has no field or method ListBuildsForDashboardRepo) (typecheck)
database/integration_test.go|334 col 17| db.ListPendingAndRunningBuildsForRepo undefined (type Interface has no field or method ListPendingAndRunningBuildsForRepo) (typecheck)
database/integration_test.go|347 col 23| db.ListPendingAndRunningBuilds undefined (type Interface has no field or method ListPendingAndRunningBuilds) (typecheck)
database/integration_test.go|357 col 17| db.LastBuildForRepo undefined (type Interface has no field or method LastBuildForRepo) (typecheck)
database/integration_test.go|369 col 17| db.GetBuildForRepo undefined (type Interface has no field or method GetBuildForRepo) (typecheck)
database/integration_test.go|380 col 18| db.CleanBuilds undefined (type Interface has no field or method CleanBuilds) (typecheck)
database/integration_test.go|392 col 15| db.UpdateBuild undefined (type Interface has no field or method UpdateBuild) (typecheck)
database/integration_test.go|398 col 17| db.GetBuild undefined (type Interface has no field or method GetBuild) (typecheck)
database/integration_test.go|411 col 12| db.DeleteBuild undefined (type Interface has no field or method DeleteBuild) (typecheck)
database/integration_test.go|420 col 12| db.DeleteRepo undefined (type Interface has no field or method DeleteRepo) (typecheck)
database/integration_test.go|428 col 12| db.DeleteUser undefined (type Interface has no field or method DeleteUser) (typecheck)
database/integration_test.go|464 col 16| db.CreateDashboard undefined (type Interface has no field or method CreateDashboard) (typecheck)
database/integration_test.go|473 col 18| db.GetDashboard undefined (type Interface has no field or method GetDashboard) (typecheck)
database/integration_test.go|494 col 18| db.UpdateDashboard undefined (type Interface has no field or method UpdateDashboard) (typecheck)
database/integration_test.go|513 col 13| db.DeleteDashboard undefined (type Interface has no field or method DeleteDashboard) (typecheck)
database/integration_test.go|548 col 13| db.CreateBuildExecutable undefined (type Interface has no field or method CreateBuildExecutable) (typecheck)
database/integration_test.go|557 col 18| db.PopBuildExecutable undefined (type Interface has no field or method PopBuildExecutable) (typecheck)
database/integration_test.go|569 col 15| db.UpdateBuild undefined (type Interface has no field or method UpdateBuild) (typecheck)
database/integration_test.go|574 col 11| db.CreateBuildExecutable undefined (type Interface has no field or method CreateBuildExecutable) (typecheck)
database/integration_test.go|579 col 19| db.CleanBuildExecutables undefined (type Interface has no field or method CleanBuildExecutables) (typecheck)
database/integration_test.go|588 col 14| db.PopBuildExecutable undefined (type Interface has no field or method PopBuildExecutable) (typecheck)
database/integration_test.go|623 col 16| db.CreateDeployment undefined (type Interface has no field or method CreateDeployment) (typecheck)
database/integration_test.go|631 col 19| db.CountDeployments undefined (type Interface has no field or method CountDeployments) (typecheck)
database/integration_test.go|641 col 18| db.CountDeploymentsForRepo undefined (type Interface has no field or method CountDeploymentsForRepo) (typecheck)
database/integration_test.go|651 col 18| db.ListDeployments undefined (type Interface has no field or method ListDeployments) (typecheck)
database/integration_test.go|661 col 17| db.ListDeploymentsForRepo undefined (type Interface has no field or method ListDeploymentsForRepo) (typecheck)
database/integration_test.go|676 col 18| db.GetDeploymentForRepo undefined (type Interface has no field or method GetDeploymentForRepo) (typecheck)
database/integration_test.go|688 col 15| db.UpdateDeployment undefined (type Interface has no field or method UpdateDeployment) (typecheck)
database/integration_test.go|694 col 18| db.GetDeployment undefined (type Interface has no field or method GetDeployment) (typecheck)
database/integration_test.go|707 col 12| db.DeleteDeployment undefined (type Interface has no field or method DeleteDeployment) (typecheck)
database/integration_test.go|742 col 16| db.CreateHook undefined (type Interface has no field or method CreateHook) (typecheck)
database/integration_test.go|750 col 19| db.CountHooks undefined (type Interface has no field or method CountHooks) (typecheck)
database/integration_test.go|760 col 18| db.CountHooksForRepo undefined (type Interface has no field or method CountHooksForRepo) (typecheck)
database/integration_test.go|770 col 18| db.ListHooks undefined (type Interface has no field or method ListHooks) (typecheck)
database/integration_test.go|780 col 24| db.ListHooksForRepo undefined (type Interface has no field or method ListHooksForRepo) (typecheck)
database/integration_test.go|794 col 17| db.LastHookForRepo undefined (type Interface has no field or method LastHookForRepo) (typecheck)
Filtered Findings (0)
Annotations
Check failure on line 154 in api/types/executor_test.go
github-actions / golangci
[golangci] api/types/executor_test.go#L154
missing type in composite literal (typecheck)
Raw output
api/types/executor_test.go:154:4: missing type in composite literal (typecheck)
{
^
Check failure on line 162 in api/types/executor_test.go
github-actions / golangci
[golangci] api/types/executor_test.go#L162
missing type in composite literal (typecheck)
Raw output
api/types/executor_test.go:162:4: missing type in composite literal (typecheck)
{
^
Check failure on line 170 in api/types/executor_test.go
github-actions / golangci
[golangci] api/types/executor_test.go#L170
missing type in composite literal (typecheck)
Raw output
api/types/executor_test.go:170:4: missing type in composite literal (typecheck)
{
^
Check failure on line 192 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L192
db.CreateUser undefined (type Interface has no field or method CreateUser) (typecheck)
Raw output
database/integration_test.go:192:16: db.CreateUser undefined (type Interface has no field or method CreateUser) (typecheck)
_, err := db.CreateUser(context.TODO(), user)
^
Check failure on line 200 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L200
db.CreateRepo undefined (type Interface has no field or method CreateRepo) (typecheck)
Raw output
database/integration_test.go:200:16: db.CreateRepo undefined (type Interface has no field or method CreateRepo) (typecheck)
_, err := db.CreateRepo(context.TODO(), repo)
^
Check failure on line 222 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L222
db.CreateBuild undefined (type Interface has no field or method CreateBuild) (typecheck)
Raw output
database/integration_test.go:222:16: db.CreateBuild undefined (type Interface has no field or method CreateBuild) (typecheck)
_, err := db.CreateBuild(context.TODO(), build)
^
Check failure on line 230 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L230
db.CountBuilds undefined (type Interface has no field or method CountBuilds) (typecheck)
Raw output
database/integration_test.go:230:19: db.CountBuilds undefined (type Interface has no field or method CountBuilds) (typecheck)
count, err := db.CountBuilds(context.TODO())
^
Check failure on line 240 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L240
db.CountBuildsForDeployment undefined (type Interface has no field or method CountBuildsForDeployment) (typecheck)
Raw output
database/integration_test.go:240:18: db.CountBuildsForDeployment undefined (type Interface has no field or method CountBuildsForDeployment) (typecheck)
count, err = db.CountBuildsForDeployment(context.TODO(), resources.Deployments[0], nil)
^
Check failure on line 250 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L250
db.CountBuildsForOrg undefined (type Interface has no field or method CountBuildsForOrg) (typecheck)
Raw output
database/integration_test.go:250:18: db.CountBuildsForOrg undefined (type Interface has no field or method CountBuildsForOrg) (typecheck)
count, err = db.CountBuildsForOrg(context.TODO(), resources.Repos[0].GetOrg(), nil)
^
Check failure on line 260 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L260
db.CountBuildsForRepo undefined (type Interface has no field or method CountBuildsForRepo) (typecheck)
Raw output
database/integration_test.go:260:18: db.CountBuildsForRepo undefined (type Interface has no field or method CountBuildsForRepo) (typecheck)
count, err = db.CountBuildsForRepo(context.TODO(), resources.Repos[0], nil)
^
Check failure on line 270 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L270
db.CountBuildsForStatus undefined (type Interface has no field or method CountBuildsForStatus) (typecheck)
Raw output
database/integration_test.go:270:18: db.CountBuildsForStatus undefined (type Interface has no field or method CountBuildsForStatus) (typecheck)
count, err = db.CountBuildsForStatus(context.TODO(), "running", nil)
^
Check failure on line 280 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L280
db.ListBuilds undefined (type Interface has no field or method ListBuilds) (typecheck)
Raw output
database/integration_test.go:280:18: db.ListBuilds undefined (type Interface has no field or method ListBuilds) (typecheck)
list, err := db.ListBuilds(context.TODO())
^
Check failure on line 290 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L290
db.ListBuildsForOrg undefined (type Interface has no field or method ListBuildsForOrg) (typecheck)
Raw output
database/integration_test.go:290:24: db.ListBuildsForOrg undefined (type Interface has no field or method ListBuildsForOrg) (typecheck)
list, count, err = db.ListBuildsForOrg(context.TODO(), resources.Repos[0].GetOrg(), nil, 1, 10)
^
Check failure on line 303 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L303
db.ListBuildsForRepo undefined (type Interface has no field or method ListBuildsForRepo) (typecheck)
Raw output
database/integration_test.go:303:24: db.ListBuildsForRepo undefined (type Interface has no field or method ListBuildsForRepo) (typecheck)
list, count, err = db.ListBuildsForRepo(context.TODO(), resources.Repos[0], nil, time.Now().UTC().Unix(), 0, 1, 10)
^
Check failure on line 315 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L315
db.ListBuildsForDashboardRepo undefined (type Interface has no field or method ListBuildsForDashboardRepo) (typecheck)
Raw output
database/integration_test.go:315:17: db.ListBuildsForDashboardRepo undefined (type Interface has no field or method ListBuildsForDashboardRepo) (typecheck)
list, err = db.ListBuildsForDashboardRepo(context.TODO(), resources.Repos[0], []string{"main"}, []string{"push"})
^
Check failure on line 334 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L334
db.ListPendingAndRunningBuildsForRepo undefined (type Interface has no field or method ListPendingAndRunningBuildsForRepo) (typecheck)
Raw output
database/integration_test.go:334:17: db.ListPendingAndRunningBuildsForRepo undefined (type Interface has no field or method ListPendingAndRunningBuildsForRepo) (typecheck)
list, err = db.ListPendingAndRunningBuildsForRepo(context.TODO(), resources.Repos[0])
^
Check failure on line 347 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L347
db.ListPendingAndRunningBuilds undefined (type Interface has no field or method ListPendingAndRunningBuilds) (typecheck)
Raw output
database/integration_test.go:347:23: db.ListPendingAndRunningBuilds undefined (type Interface has no field or method ListPendingAndRunningBuilds) (typecheck)
queueList, err := db.ListPendingAndRunningBuilds(context.TODO(), "0")
^
Check failure on line 357 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L357
db.LastBuildForRepo undefined (type Interface has no field or method LastBuildForRepo) (typecheck)
Raw output
database/integration_test.go:357:17: db.LastBuildForRepo undefined (type Interface has no field or method LastBuildForRepo) (typecheck)
got, err := db.LastBuildForRepo(context.TODO(), resources.Repos[0], "main")
^
Check failure on line 369 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L369
db.GetBuildForRepo undefined (type Interface has no field or method GetBuildForRepo) (typecheck)
Raw output
database/integration_test.go:369:17: db.GetBuildForRepo undefined (type Interface has no field or method GetBuildForRepo) (typecheck)
got, err = db.GetBuildForRepo(context.TODO(), repo, build.GetNumber())
^
Check failure on line 380 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L380
db.CleanBuilds undefined (type Interface has no field or method CleanBuilds) (typecheck)
Raw output
database/integration_test.go:380:18: db.CleanBuilds undefined (type Interface has no field or method CleanBuilds) (typecheck)
count, err = db.CleanBuilds(context.TODO(), "integration testing", 1563474090)
^
Check failure on line 392 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L392
db.UpdateBuild undefined (type Interface has no field or method UpdateBuild) (typecheck)
Raw output
database/integration_test.go:392:15: db.UpdateBuild undefined (type Interface has no field or method UpdateBuild) (typecheck)
_, err = db.UpdateBuild(context.TODO(), build)
^
Check failure on line 398 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L398
db.GetBuild undefined (type Interface has no field or method GetBuild) (typecheck)
Raw output
database/integration_test.go:398:17: db.GetBuild undefined (type Interface has no field or method GetBuild) (typecheck)
got, err = db.GetBuild(context.TODO(), build.GetID())
^
Check failure on line 411 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L411
db.DeleteBuild undefined (type Interface has no field or method DeleteBuild) (typecheck)
Raw output
database/integration_test.go:411:12: db.DeleteBuild undefined (type Interface has no field or method DeleteBuild) (typecheck)
err = db.DeleteBuild(context.TODO(), build)
^
Check failure on line 420 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L420
db.DeleteRepo undefined (type Interface has no field or method DeleteRepo) (typecheck)
Raw output
database/integration_test.go:420:12: db.DeleteRepo undefined (type Interface has no field or method DeleteRepo) (typecheck)
err = db.DeleteRepo(context.TODO(), repo)
^
Check failure on line 428 in database/integration_test.go
github-actions / golangci
[golangci] database/integration_test.go#L428
db.DeleteUser undefined (type Interface has no field or method DeleteUser) (typecheck)
Raw output
database/integration_test.go:428:12: db.DeleteUser undefined (type Interface has no field or method DeleteUser) (typecheck)
err = db.DeleteUser(context.TODO(), user)
^