gitlab

package
v0.0.0-...-8aabc32 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBranch = "main"
)

Variables

This section is empty.

Functions

func APIToken

func APIToken() string

APIToken returns a GitLab API token read from the environment.

func CreateCommit

func CreateCommit(cli *gitlab.Client, project *gitlab.Project) *gitlab.File

CreateCommit creates a Git commit on the default branch in the repository with the given project ID.

func CreateProject

func CreateProject(cli *gitlab.Client, f *framework.Framework) *gitlab.Project

CreateProject creates a GitLab project named after the given framework.Framework with an initialized default branch.

func DeleteProject

func DeleteProject(cli *gitlab.Client, project *gitlab.Project)

DeleteProject deletes a GitLab project by project ID.

func NewClient

func NewClient() *gitlab.Client

NewClient returns a new GitLab client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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