Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/woodpecker-ci/woodpecker
/ functions
Functions
5,118 in github.com/woodpecker-ci/woodpecker
⨍
Functions
5,118
◇
Types & classes
908
↓ 709 callers
Method
Get
Get returns if the user is a member of the organization.
server/cache/membership.go:35
↓ 680 callers
Method
Error
Error signals the task is done with an error.
server/queue/queue.go:123
↓ 551 callers
Method
String
()
server/model/task.go:53
↓ 536 callers
Method
Return
(fileMetas []*types.FileMeta, err error)
server/forge/mocks/mock_Forge.go:417
↓ 506 callers
Method
Run
(run func(ctx context.Context, u *model.User, r *model.Repo, b *model.Pipeline, dirName string))
server/forge/mocks/mock_Forge.go:384
↓ 476 callers
Method
Errorf
Errorf implement ILogger.
server/store/datastore/xorm.go:47
↓ 383 callers
Method
Get
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 callers
Function
run
(ctx context.Context, c *cli.Command)
cli/exec/exec.go:66
↓ 255 callers
Method
Context
()
server/rpc/authorizer.go:69
↓ 231 callers
Method
Error
(c context.Context, id string, err error)
server/scheduler/scheduler.go:48
↓ 222 callers
Method
Return
(err error)
server/store/mocks/mock_Store.go:4482
↓ 197 callers
Method
Set
Set replaces the current value using an exclusive write lock. Blocks until all ongoing reads/writes complete.
shared/utils/protected.go:29
↓ 161 callers
Method
Debug
Debug implement ILogger.
server/store/datastore/xorm.go:54
↓ 155 callers
Method
Return
(org *woodpecker.Org, err error)
woodpecker-go/woodpecker/mocks/mock_Client.go:1560
↓ 155 callers
Method
Run
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 callers
Method
Len
()
server/model/const.go:39
↓ 126 callers
Method
Close
()
server/store/store.go:209
↓ 124 callers
Function
renameColumn
(sess *xorm.Session, table, column, newName string)
server/store/datastore/migration/common.go:204
↓ 113 callers
Method
Run
(run func())
server/store/mocks/mock_Store.go:4475
↓ 113 callers
Method
WriteHeader
WriteHeader writes the table header.
cli/output/table.go:131
↓ 106 callers
Method
Run
(run func(orgID int64))
woodpecker-go/woodpecker/mocks/mock_Client.go:1547
↓ 97 callers
Method
Trace
(*state.State)
pipeline/tracing/tracer.go:23
↓ 96 callers
Method
Is
Is allows errors.Is to match against ErrExternal types.
server/queue/queue.go:59
↓ 95 callers
Function
cmdStep
Step builder helpers.
pipeline/runtime/runtime_test.go:42
↓ 93 callers
Method
Info
Info returns internal queue information.
server/queue/queue.go:134
↓ 82 callers
Function
setNonEmptyEnvVar
(env map[string]string, key, value string)
pipeline/frontend/metadata/environment.go:194
↓ 81 callers
Function
newTestTracer
newTestTracer creates a MockTracer that accepts any number of Trace calls.
pipeline/runtime/helpers_test.go:33
↓ 79 callers
Method
Done
Done signals the task is complete.
server/queue/queue.go:120
↓ 77 callers
Function
FromContext
FromContext returns the Store associated with this context.
server/store/context.go:26
↓ 72 callers
Function
New
New returns a new Runtime for the given workflow spec and options.
pipeline/runtime/runtime.go:56
↓ 71 callers
Function
WithTracer
WithTracer sets the tracer used to report step state changes.
pipeline/runtime/option.go:35
↓ 70 callers
Method
Len
()
pipeline/frontend/builder/types.go:49
↓ 70 callers
Function
WithLogger
WithLogger sets the function used to stream step logs.
pipeline/runtime/option.go:28
↓ 69 callers
Method
Run
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 callers
Method
Poll
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 callers
Method
Status
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 callers
Function
newTestLogger
newTestLogger creates a noop logger.
pipeline/runtime/helpers_test.go:41
↓ 68 callers
Function
newTestStore
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 callers
Function
NewClient
NewClient returns a new client from the CLI context.
cli/internal/util.go:38
↓ 63 callers
Method
Add
(id string, timeout time.Duration, repo, pipeline string)
agent/state.go:40
↓ 61 callers
Function
handleDBError
(c *gin.Context, err error)
server/api/helper.go:47
↓ 59 callers
Function
New
New returns a dummy backend.
pipeline/backend/dummy/dummy.go:70
↓ 57 callers
Function
metadataFileAndOverrideOrDefault
metadataFileAndOverrideOrDefault will either use the flag default or if metadata file is set only overload if explicit set.
cli/exec/metadata.go:159
↓ 56 callers
Method
Run
(run func(ctx context.Context))
pipeline/backend/types/mocks/mock_Backend.go:305
↓ 53 callers
Method
Return
(err error)
pipeline/tracing/mocks/mock_Tracer.go:80
↓ 49 callers
Method
Copy
Copy makes a copy of the secret without the value.
server/model/secret.go:126
↓ 48 callers
Method
Get
(ctx context.Context, name string, opts kube_meta_v1.GetOptions)
pipeline/backend/kubernetes/namespace.go:27
↓ 48 callers
Method
get
HTTP request helper functions. Helper function for making an http GET request.
woodpecker-go/woodpecker/client.go:96
↓ 46 callers
Method
CreateRepo
CreateRepo creates a new repository.
server/store/store.go:56
↓ 45 callers
Function
getTracerStates
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 callers
Method
Return
(err error)
rpc/mocks/mock_Peer.go:94
↓ 42 callers
Method
Write
Write writes the entry to the log.
server/logging/logging.go:36
↓ 41 callers
Method
Name
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 callers
Function
Repo
(c *gin.Context)
server/router/middleware/session/repo.go:33
↓ 41 callers
Method
Update
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 callers
Function
defaultWorkflow
(state model.StatusValue)
server/rpc/rpc_integration_test.go:98
↓ 39 callers
Method
PushAtOnce
PushAtOnce pushes multiple tasks to the tail of this queue.
server/queue/queue.go:108
↓ 39 callers
Method
Run
(run func(c context.Context, id string, exitStatus model.StatusValue))
server/queue/mocks/mock_Queue.go:72
↓ 37 callers
Method
Next
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 callers
Method
Warn
Warn implement ILogger.
server/store/datastore/xorm.go:82
↓ 35 callers
Method
Return
(secret *model.Secret, err error)
server/services/secret/mocks/mock_Service.go:797
↓ 35 callers
Function
User
(c *gin.Context)
server/router/middleware/session/user.go:30
↓ 35 callers
Function
newTestRPC
newTestRPC creates an RPC instance with common test infrastructure.
server/rpc/rpc_integration_test.go:42
↓ 34 callers
Method
Return
(registry *model.Registry, err error)
server/services/registry/mocks/mock_Service.go:797
↓ 34 callers
Method
_get
(path: string)
web/src/lib/api/client.ts:78
↓ 33 callers
Method
Errorf
(format string, v ...any)
server/store/datastore/migration/logger.go:53
↓ 33 callers
Method
String
String returns a string representation of an Axis as a comma-separated list of environment variables.
pipeline/frontend/yaml/matrix/matrix.go:38
↓ 33 callers
Function
copyEnv
(woodpecker, drone string, env map[string]string)
pipeline/frontend/metadata/drone_compatibility.go:74
↓ 33 callers
Function
wrapGet
wrapGet return error if err not nil or if requested entry do not exist.
server/store/datastore/helper.go:29
↓ 30 callers
Function
String
String returns the Version set at build time or "dev".
version/version.go:23
↓ 30 callers
Function
dummyStep
(name string)
pipeline/runtime/step_test.go:58
↓ 29 callers
Function
Refresh
(ctx context.Context, forge Forge, _store store.Store, user *model.User)
server/forge/refresh.go:58
↓ 28 callers
Method
asModel
()
server/forge/addon/args.go:117
↓ 28 callers
Function
findLastTraceByName
(traces []state.State, name string)
pipeline/runtime/runtime_test.go:144
↓ 27 callers
Method
Done
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 callers
Method
GetUser
Users GetUser gets a user by unique ID.
server/store/store.go:28
↓ 27 callers
Function
defaultRepo
()
server/rpc/rpc_integration_test.go:81
↓ 27 callers
Function
newBool
(val bool)
pipeline/backend/kubernetes/utils.go:129
↓ 27 callers
Function
newInt64
(val int64)
pipeline/backend/kubernetes/utils.go:135
↓ 27 callers
Function
newTestContext
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 callers
Method
Encode
()
server/model/pagination.go:41
↓ 26 callers
Method
Hook
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 callers
Method
Load
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 callers
Function
ParseRepo
ParseRepo parses the repository owner and name from a string.
cli/internal/util.go:128
↓ 25 callers
Function
FormatFlag
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 callers
Method
Value
()
shared/optional/option.go:39
↓ 25 callers
Method
_post
(path: string, data?: unknown)
web/src/lib/api/client.ts:82
↓ 25 callers
Function
defaultPipeline
(status model.StatusValue)
server/rpc/rpc_integration_test.go:89
↓ 24 callers
Method
Build
()
pipeline/frontend/builder/builder.go:52
↓ 24 callers
Method
Wait
Wait waits until the task is complete. Also signals via error ErrCancel if workflow got canceled.
server/queue/queue.go:131
↓ 24 callers
Method
WorkflowGetTree
Workflow
server/store/store.go:188
↓ 23 callers
Method
GetRepo
Repos GetRepo gets a repo by unique ID.
server/store/store.go:46
↓ 23 callers
Method
GetWrites
()
pipeline/utils/copy_line_by_line_test.go:45
↓ 23 callers
Function
close
()
web/src/compositions/usePipelineFeed.ts:14
↓ 23 callers
Function
defaultAgent
defaultAgent returns a system agent (OrgID=-1) that can access any repo.
server/rpc/rpc_integration_test.go:64
↓ 23 callers
Function
newDummyRuntime
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 callers
Method
CreatePipeline
CreatePipeline creates a new pipeline and steps.
server/store/store.go:90
↓ 22 callers
Function
file_woodpecker_proto_rawDescGZIP
()
rpc/proto/woodpecker.pb.go:1321
↓ 22 callers
Function
mkPod
(step *types.Step, config *config, podName, goos string, options BackendOptions, taskUUID string)
pipeline/backend/kubernetes/pod.go:44
↓ 22 callers
Function
wrapInsert
(c int64, err error)
server/store/datastore/helper.go:54
next →
1–100 of 5,118, ranked by callers