utils

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRepositoryName

func GetRepositoryName(input string) string

GetRepositoryName returns the name of a given string

func GetRepositoryOrganization

func GetRepositoryOrganization(input string) string

GetRepositoryOrganization returns the organization from a given string

func IsValidRepositoryName

func IsValidRepositoryName(input string) bool

IsValidRepositoryName returns true if the input match the repository regexp

func MergeStatuses added in v0.2.0

func MergeStatuses(platformStatuses []*platforms.Status, configStatuses []string) []*platforms.Status

MergeStatuses based on the repo/global config

func RenderDashboard added in v0.3.0

func RenderDashboard(tpl string, data *DashboardData) (output string, err error)

func RenderReleaseNote added in v0.2.0

func RenderReleaseNote(tpl string, data *ReleaseNoteData) (output string, err error)

RenderReleaseNote add/update status check from a release note based on a template

Types

type DashboardData added in v0.3.0

type DashboardData struct {
	Errors            []string
	Enabled           bool
	LastExecutionTime string
}

DashboardData hold issue data used to populate the issue dashboard template

type ReleaseNoteData added in v0.2.0

type ReleaseNoteData struct {
	ReleaseNote string
	Statuses    []*platforms.Status
}

ReleaseNoteData hold release data used to populate the release note template

type Repository added in v0.6.0

type Repository struct {
	Name     string
	Owner    string
	Platform string
	Scheme   string
}

func ExtractRepository added in v0.6.0

func ExtractRepository(input string) (repository *Repository, err error)

ExtractRepository extract values from a Git Url and returns a Repository struct

Jump to

Keyboard shortcuts

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