utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRepositoryName

func GetRepositoryName(repository string) string

GetRepositoryName returns the name of a given repository

func GetRepositoryOrganization

func GetRepositoryOrganization(repository string) string

GetRepositoryOrganization returns the organization from a given repository

func IsValidRepositoryName

func IsValidRepositoryName(repository string) bool

IsValidRepositoryName returns true if the repository 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 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 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

Jump to

Keyboard shortcuts

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