commit

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL