githubuser

package
v0.0.0-...-5da2f6a Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Username    string `yaml:"username"`
	AccessToken string `yaml:"token"`
}

type Platform

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

func NewPlatform

func NewPlatform(config Config) (Platform, error)

NewPlatform creates a GitHub platform

func (Platform) AuthMethod

func (n Platform) AuthMethod(repo api.Repository) githttp.AuthMethod

func (Platform) CommitAndPush

func (n Platform) CommitAndPush(repo api.Repository, base string, branch string, message string, dir string) error

func (Platform) CreateMergeRequest

func (n Platform) CreateMergeRequest(repository api.Repository, sourceBranch string, title string, description string) error

func (Platform) CreateOrUpdateMergeRequest

func (n Platform) CreateOrUpdateMergeRequest(repository api.Repository, sourceBranch string, title string, description string, key string) error

func (Platform) CreateTag

func (n Platform) CreateTag(repository api.Repository, tagName string, commitHash string, message string) error

func (Platform) EnvironmentVariables

func (n Platform) EnvironmentVariables(repo api.Repository, environmentName string) ([]api.CIVariable, error)

func (Platform) Environments

func (n Platform) Environments(repo api.Repository) ([]api.CIEnvironment, error)

func (Platform) FileContent

func (n Platform) FileContent(repository api.Repository, branch string, path string) (string, error)

func (Platform) FindRepository

func (n Platform) FindRepository(path string) (api.Repository, error)

func (Platform) Languages

func (n Platform) Languages(repo api.Repository) (map[string]int, error)

func (Platform) Merge

func (n Platform) Merge(repo api.Repository, mergeRequest api.MergeRequest, mergeStrategy api.MergeStrategyOptions) error

func (Platform) MergeRequestDiff

func (n Platform) MergeRequestDiff(repo api.Repository, mergeRequest api.MergeRequest) (api.MergeRequestDiff, error)

func (Platform) MergeRequests

func (n Platform) MergeRequests(repo api.Repository, options api.MergeRequestSearchOptions) ([]api.MergeRequest, error)

func (Platform) Name

func (n Platform) Name() string

func (Platform) Releases

func (n Platform) Releases(repository api.Repository, limit int) ([]api.Release, error)

func (Platform) Repositories

func (n Platform) Repositories(opts api.RepositoryListOpts) ([]api.Repository, error)

func (Platform) Slug

func (n Platform) Slug() string

func (Platform) SubmitReview

func (n Platform) SubmitReview(repo api.Repository, mergeRequest api.MergeRequest, approved bool, message *string) error

func (Platform) Tags

func (n Platform) Tags(repository api.Repository, limit int) ([]api.Tag, error)

func (Platform) Variables

func (n Platform) Variables(repo api.Repository) ([]api.CIVariable, error)

Jump to

Keyboard shortcuts

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