gitlab

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitlabAdapter

type GitlabAdapter struct {
	// contains filtered or unexported fields
}

func New

func (*GitlabAdapter) AddComment

func (a *GitlabAdapter) AddComment(ctx context.Context, externalID string, body string) error

func (*GitlabAdapter) Capabilities

func (a *GitlabAdapter) Capabilities() adapter.AdapterCapabilities

func (*GitlabAdapter) Fetch

func (a *GitlabAdapter) Fetch(ctx context.Context, externalID string) (domain.Session, error)

func (*GitlabAdapter) ListSelectable

func (a *GitlabAdapter) ListSelectable(ctx context.Context, opts adapter.ListOpts) (*adapter.ListResult, error)

func (*GitlabAdapter) Name

func (a *GitlabAdapter) Name() string

func (*GitlabAdapter) OnEvent

func (a *GitlabAdapter) OnEvent(ctx context.Context, event domain.SystemEvent) error

func (*GitlabAdapter) Resolve

func (*GitlabAdapter) UpdateState

func (a *GitlabAdapter) UpdateState(ctx context.Context, externalID string, state domain.TrackerState) error

func (*GitlabAdapter) Watch

type GitlabRepoSource

type GitlabRepoSource struct {
	// contains filtered or unexported fields
}

GitlabRepoSource lists the user's GitLab projects for repository selection.

func NewRepoSource

func NewRepoSource(ctx context.Context, cfg config.GitlabConfig) (*GitlabRepoSource, error)

NewRepoSource creates a GitLab repo source with token resolution. If cfg.Token is empty, it falls back to the glab CLI token.

func (*GitlabRepoSource) ListRepos

ListRepos returns a page of GitLab projects. When opts.Search is non-empty, the GitLab search API is used. Pagination is driven by the Link response header.

func (*GitlabRepoSource) Name

func (s *GitlabRepoSource) Name() string

Name returns the source identifier.

Jump to

Keyboard shortcuts

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