util

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertStringToAllowedRepo

func ConvertStringToAllowedRepo(repoInput string) *types.AllowedRepo

ConvertStringToAllowedRepo accepts a user-supplied repo in the format of <github-organization>/<repo-name>. It trims out stray characters that we might expect in a repos file that was copy-pasted from json or an array, and it only returns an AllowedRepo if the user-supplied input looks valid. Note this does not actually look up the repo via the GitHub API because that's slow, and we do it later when converting repo names to GitHub response structs.

func NewTestFileName

func NewTestFileName() string

func RandStringBytes

func RandStringBytes(n int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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