gitlab

package
v0.0.0-...-52ee643 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package gitlab provides a GitLab platform implementation for fetching merge request data from GitLab instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Platform)

Option configures a Platform.

func WithBaseURL

func WithBaseURL(baseURL string) Option

WithBaseURL sets a custom base URL for self-hosted GitLab instances.

func WithHTTPClient

func WithHTTPClient(client *http.Client) Option

WithHTTPClient sets a custom HTTP client for the GitLab platform.

func WithLogger

func WithLogger(logger *slog.Logger) Option

WithLogger sets a custom logger for the GitLab platform.

type Platform

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

Platform implements the prx.Platform interface for GitLab.

func NewPlatform

func NewPlatform(token string, opts ...Option) *Platform

NewPlatform creates a new GitLab platform client.

func (*Platform) FetchPR

func (p *Platform) FetchPR(ctx context.Context, owner, repo string, number int, refTime time.Time) (*prx.PullRequestData, error)

FetchPR retrieves a merge request with all events and metadata.

func (*Platform) Name

func (*Platform) Name() string

Name returns the platform identifier.

Jump to

Keyboard shortcuts

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