Documentation
¶
Overview ¶
Package commit implements the gitlab_project.commit builtin function: create a commit with one or more file changes on a branch in a GitLab project.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrStaleHead is returned when an action's LastCommitID no longer matches // the last-commit-id GitLab holds for that path: a concurrent write. ErrStaleHead = errors.New("stale head") // ErrInvalidAction is returned when GitLab rejects an action — e.g. `create` // on an existing path, `update`/`delete` on a missing path. ErrInvalidAction = errors.New("invalid action") // ErrNoChange is returned when GitLab reports the actions would not change // the branch — see commit, which resolves it to the branch head. ErrNoChange = errors.New("no change") )
Functions ¶
func New ¶
func New(resolveToken apifunc.TokenResolver) runner.BuiltinFunction
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.