MCPcopy Create free account

hub / github.com/woodpecker-ci/woodpecker / functions

Functions5,118 in github.com/woodpecker-ci/woodpecker

↓ 709 callersMethodGet
Get returns if the user is a member of the organization.
server/cache/membership.go:35
↓ 680 callersMethodError
Error signals the task is done with an error.
server/queue/queue.go:123
↓ 551 callersMethodString
()
server/model/task.go:53
↓ 536 callersMethodReturn
(fileMetas []*types.FileMeta, err error)
server/forge/mocks/mock_Forge.go:417
↓ 506 callersMethodRun
(run func(ctx context.Context, u *model.User, r *model.Repo, b *model.Pipeline, dirName string))
server/forge/mocks/mock_Forge.go:384
↓ 476 callersMethodErrorf
Errorf implement ILogger.
server/store/datastore/xorm.go:47
↓ 383 callersMethodGet
Get returns the current value using a read lock, allowing multiple concurrent readers. Safe to call from multiple goroutines simultaneously.
shared/utils/protected.go:25
↓ 294 callersFunctionrun
(ctx context.Context, c *cli.Command)
cli/exec/exec.go:66
↓ 255 callersMethodContext
()
server/rpc/authorizer.go:69
↓ 231 callersMethodError
(c context.Context, id string, err error)
server/scheduler/scheduler.go:48
↓ 222 callersMethodReturn
(err error)
server/store/mocks/mock_Store.go:4482
↓ 197 callersMethodSet
Set replaces the current value using an exclusive write lock. Blocks until all ongoing reads/writes complete.
shared/utils/protected.go:29
↓ 161 callersMethodDebug
Debug implement ILogger.
server/store/datastore/xorm.go:54
↓ 155 callersMethodReturn
(org *woodpecker.Org, err error)
woodpecker-go/woodpecker/mocks/mock_Client.go:1560
↓ 155 callersMethodRun
Run starts the workflow, executes all stages sequentially, and tears down the workflow on exit. The runnerCtx must outlive workflow cancellation so th
pipeline/runtime/workflow.go:35
↓ 142 callersMethodLen
()
server/model/const.go:39
↓ 126 callersMethodClose
()
server/store/store.go:209
↓ 124 callersFunctionrenameColumn
(sess *xorm.Session, table, column, newName string)
server/store/datastore/migration/common.go:204
↓ 113 callersMethodRun
(run func())
server/store/mocks/mock_Store.go:4475
↓ 113 callersMethodWriteHeader
WriteHeader writes the table header.
cli/output/table.go:131
↓ 106 callersMethodRun
(run func(orgID int64))
woodpecker-go/woodpecker/mocks/mock_Client.go:1547
↓ 97 callersMethodTrace
(*state.State)
pipeline/tracing/tracer.go:23
↓ 96 callersMethodIs
Is allows errors.Is to match against ErrExternal types.
server/queue/queue.go:59
↓ 95 callersFunctioncmdStep
Step builder helpers.
pipeline/runtime/runtime_test.go:42
↓ 93 callersMethodInfo
Info returns internal queue information.
server/queue/queue.go:134
↓ 82 callersFunctionsetNonEmptyEnvVar
(env map[string]string, key, value string)
pipeline/frontend/metadata/environment.go:194
↓ 81 callersFunctionnewTestTracer
newTestTracer creates a MockTracer that accepts any number of Trace calls.
pipeline/runtime/helpers_test.go:33
↓ 79 callersMethodDone
Done signals the task is complete.
server/queue/queue.go:120
↓ 77 callersFunctionFromContext
FromContext returns the Store associated with this context.
server/store/context.go:26
↓ 72 callersFunctionNew
New returns a new Runtime for the given workflow spec and options.
pipeline/runtime/runtime.go:56
↓ 71 callersFunctionWithTracer
WithTracer sets the tracer used to report step state changes.
pipeline/runtime/option.go:35
↓ 70 callersMethodLen
()
pipeline/frontend/builder/types.go:49
↓ 70 callersFunctionWithLogger
WithLogger sets the function used to stream step logs.
pipeline/runtime/option.go:28
↓ 69 callersMethodRun
TODO: refactor this big function into subfunctions in it's own subpackage Run executes a workflow using a backend, tracks its state and reports the st
agent/runner.go:63
↓ 68 callersMethodPoll
Poll retrieves and removes a task head of this queue. The filter is applied to each candidate: returning false skips the task, the int is a match scor
server/queue/queue.go:114
↓ 68 callersMethodStatus
Status sends workflow status updates to the forge. Provides visual feedback in forge UI (commit checks, PR status). Failures should be logged but not
server/forge/forge.go:116
↓ 68 callersFunctionnewTestLogger
newTestLogger creates a noop logger.
pipeline/runtime/helpers_test.go:41
↓ 68 callersFunctionnewTestStore
newTestStore creates a new database connection for testing purposes. The database driver and connection string are provided by environment variables,
server/store/datastore/engine_test.go:41
↓ 65 callersFunctionNewClient
NewClient returns a new client from the CLI context.
cli/internal/util.go:38
↓ 63 callersMethodAdd
(id string, timeout time.Duration, repo, pipeline string)
agent/state.go:40
↓ 61 callersFunctionhandleDBError
(c *gin.Context, err error)
server/api/helper.go:47
↓ 59 callersFunctionNew
New returns a dummy backend.
pipeline/backend/dummy/dummy.go:70
↓ 57 callersFunctionmetadataFileAndOverrideOrDefault
metadataFileAndOverrideOrDefault will either use the flag default or if metadata file is set only overload if explicit set.
cli/exec/metadata.go:159
↓ 56 callersMethodRun
(run func(ctx context.Context))
pipeline/backend/types/mocks/mock_Backend.go:305
↓ 53 callersMethodReturn
(err error)
pipeline/tracing/mocks/mock_Tracer.go:80
↓ 49 callersMethodCopy
Copy makes a copy of the secret without the value.
server/model/secret.go:126
↓ 48 callersMethodGet
(ctx context.Context, name string, opts kube_meta_v1.GetOptions)
pipeline/backend/kubernetes/namespace.go:27
↓ 48 callersMethodget
HTTP request helper functions. Helper function for making an http GET request.
woodpecker-go/woodpecker/client.go:96
↓ 46 callersMethodCreateRepo
CreateRepo creates a new repository.
server/store/store.go:56
↓ 45 callersFunctiongetTracerStates
getTracerStates extracts all state.State values passed to Trace() calls on a mockery-generated MockTracer. Thread-safe because mock.Mock.Calls is appe
pipeline/runtime/helpers_test.go:51
↓ 42 callersMethodReturn
(err error)
rpc/mocks/mock_Peer.go:94
↓ 42 callersMethodWrite
Write writes the entry to the log.
server/logging/logging.go:36
↓ 41 callersMethodName
Name returns the unique identifier of this forge driver. Examples: "github", "gitlab", "gitea", "forgejo", "bitbucket" Must be unique and constant acr
server/forge/forge.go:60
↓ 41 callersFunctionRepo
(c *gin.Context)
server/router/middleware/session/repo.go:33
↓ 41 callersMethodUpdate
Update performs an atomic read-modify-write operation under a single exclusive lock. The provided function receives the current value and returns the
shared/utils/protected.go:34
↓ 41 callersFunctiondefaultWorkflow
(state model.StatusValue)
server/rpc/rpc_integration_test.go:98
↓ 39 callersMethodPushAtOnce
PushAtOnce pushes multiple tasks to the tail of this queue.
server/queue/queue.go:108
↓ 39 callersMethodRun
(run func(c context.Context, id string, exitStatus model.StatusValue))
server/queue/mocks/mock_Queue.go:72
↓ 37 callersMethodNext
Next blocks until the server provides the next workflow to execute from the queue. This is the primary work-polling mechanism. Agents call this repea
rpc/peer.go:101
↓ 37 callersMethodWarn
Warn implement ILogger.
server/store/datastore/xorm.go:82
↓ 35 callersMethodReturn
(secret *model.Secret, err error)
server/services/secret/mocks/mock_Service.go:797
↓ 35 callersFunctionUser
(c *gin.Context)
server/router/middleware/session/user.go:30
↓ 35 callersFunctionnewTestRPC
newTestRPC creates an RPC instance with common test infrastructure.
server/rpc/rpc_integration_test.go:42
↓ 34 callersMethodReturn
(registry *model.Registry, err error)
server/services/registry/mocks/mock_Service.go:797
↓ 34 callersMethod_get
(path: string)
web/src/lib/api/client.ts:78
↓ 33 callersMethodErrorf
(format string, v ...any)
server/store/datastore/migration/logger.go:53
↓ 33 callersMethodString
String returns a string representation of an Axis as a comma-separated list of environment variables.
pipeline/frontend/yaml/matrix/matrix.go:38
↓ 33 callersFunctioncopyEnv
(woodpecker, drone string, env map[string]string)
pipeline/frontend/metadata/drone_compatibility.go:74
↓ 33 callersFunctionwrapGet
wrapGet return error if err not nil or if requested entry do not exist.
server/store/datastore/helper.go:29
↓ 30 callersFunctionString
String returns the Version set at build time or "dev".
version/version.go:23
↓ 30 callersFunctiondummyStep
(name string)
pipeline/runtime/step_test.go:58
↓ 29 callersFunctionRefresh
(ctx context.Context, forge Forge, _store store.Store, user *model.User)
server/forge/refresh.go:58
↓ 28 callersMethodasModel
()
server/forge/addon/args.go:117
↓ 28 callersFunctionfindLastTraceByName
(traces []state.State, name string)
pipeline/runtime/runtime_test.go:144
↓ 27 callersMethodDone
Done signals to the server that the workflow has completed execution. This is called once per workflow after all steps have finished (or workflow was
rpc/peer.go:173
↓ 27 callersMethodGetUser
Users GetUser gets a user by unique ID.
server/store/store.go:28
↓ 27 callersFunctiondefaultRepo
()
server/rpc/rpc_integration_test.go:81
↓ 27 callersFunctionnewBool
(val bool)
pipeline/backend/kubernetes/utils.go:129
↓ 27 callersFunctionnewInt64
(val int64)
pipeline/backend/kubernetes/utils.go:135
↓ 27 callersFunctionnewTestContext
newTestContext builds a gin test context wired to the given store. Configure it by applying the option helpers (withUser, withRepo, withParam, withReq
server/api/helpers_sqlite_test.go:63
↓ 26 callersMethodEncode
()
server/model/pagination.go:41
↓ 26 callersMethodHook
Hook parses incoming webhook and returns pipeline data. Webhook Processing Flow: 1. HTTP request arrives at /api/hook with forge-specific format 2. W
server/forge/forge.go:166
↓ 26 callersMethodLoad
Load initializes the backend engine and returns metadata about its capabilities and configuration. This is called once after flags are parsed. The bac
pipeline/backend/types/backend.go:80
↓ 26 callersFunctionParseRepo
ParseRepo parses the repository owner and name from a string.
cli/internal/util.go:128
↓ 25 callersFunctionFormatFlag
FormatFlag return format flag with value set based on template if hidden value is set, flag will be hidden.
cli/common/flags.go:68
↓ 25 callersMethodValue
()
shared/optional/option.go:39
↓ 25 callersMethod_post
(path: string, data?: unknown)
web/src/lib/api/client.ts:82
↓ 25 callersFunctiondefaultPipeline
(status model.StatusValue)
server/rpc/rpc_integration_test.go:89
↓ 24 callersMethodBuild
()
pipeline/frontend/builder/builder.go:52
↓ 24 callersMethodWait
Wait waits until the task is complete. Also signals via error ErrCancel if workflow got canceled.
server/queue/queue.go:131
↓ 24 callersMethodWorkflowGetTree
Workflow
server/store/store.go:188
↓ 23 callersMethodGetRepo
Repos GetRepo gets a repo by unique ID.
server/store/store.go:46
↓ 23 callersMethodGetWrites
()
pipeline/utils/copy_line_by_line_test.go:45
↓ 23 callersFunctionclose
()
web/src/compositions/usePipelineFeed.ts:14
↓ 23 callersFunctiondefaultAgent
defaultAgent returns a system agent (OrgID=-1) that can access any repo.
server/rpc/rpc_integration_test.go:64
↓ 23 callersFunctionnewDummyRuntime
newDummyRuntime creates a Runtime backed by the dummy engine with a pre-setup workflow so individual step methods can be tested in isolation.
pipeline/runtime/step_test.go:45
↓ 22 callersMethodCreatePipeline
CreatePipeline creates a new pipeline and steps.
server/store/store.go:90
↓ 22 callersFunctionfile_woodpecker_proto_rawDescGZIP
()
rpc/proto/woodpecker.pb.go:1321
↓ 22 callersFunctionmkPod
(step *types.Step, config *config, podName, goos string, options BackendOptions, taskUUID string)
pipeline/backend/kubernetes/pod.go:44
↓ 22 callersFunctionwrapInsert
(c int64, err error)
server/store/datastore/helper.go:54
next →1–100 of 5,118, ranked by callers