launchpad

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchProjectGroupRepos added in v0.2.1

func FetchProjectGroupRepos(projectGroup string, config Config) ([]repos.RepoDetails, error)

FetchProjectGroupRepos creates a slice of RepoDetails types representing the repos associated with a given ProjectGroup in Launchpad.

Types

type Config added in v0.4.0

type Config struct {
	ProjectGroups []string `mapstructure:"project-groups"`
	IgnoredRepos  []string `mapstructure:"ignores"`
}

Config contains fields used in releasegen's config.yaml file to configure its behaviour when generating reports about Launchpad repositories.

type Project

type Project struct {
	Name string
	// contains filtered or unexported fields
}

Project is a representation of a Launchpad Project.

func (*Project) DefaultBranch

func (p *Project) DefaultBranch(ctx context.Context) (string, error)

DefaultBranch returns the default VCS branch for a Launchpad project.

func (*Project) NewCommits

func (p *Project) NewCommits(ctx context.Context) (int, error)

GetNewCommits parses the git log page for a Launchpad project and returns the number of commits that have happened on the default branch since the last tag.

func (*Project) Tags

func (p *Project) Tags(ctx context.Context) ([]*Tag, error)

Tags returns a list of tags for a Launchpad project.

type Repository added in v0.3.0

type Repository struct {
	Details repos.RepoDetails
	// contains filtered or unexported fields
}

Repository represents a single Launchpad git Repository.

func (*Repository) Process added in v0.3.0

func (r *Repository) Process(ctx context.Context) error

Process populates the Repository with details of its tags, default branch, and commits.

type Tag

type Tag struct {
	Name      string
	Commit    string
	Timestamp *time.Time
	// contains filtered or unexported fields
}

Tag is a representation of a git Tag in Launchpad.

func (*Tag) Process

func (t *Tag) Process(ctx context.Context) error

Process populates the tag with details of the relevant commit.

Jump to

Keyboard shortcuts

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