github

package
v0.0.0-...-8019b93 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AppStudioAppDataOrg = "redhat-appstudio-appdata"

Variables

This section is empty.

Functions

func DeleteRepository

func DeleteRepository(client *github.Client, ctx context.Context, orgName string, repoName string) error

Delete Repository takes in the given repository URL and attempts to delete it

func GenerateNewRepository

func GenerateNewRepository(client *github.Client, ctx context.Context, orgName string, repoName string, description string) (string, error)

func GenerateNewRepositoryName

func GenerateNewRepositoryName(displayName string, namespace string) string

func GetMockedClient

func GetMockedClient() *github.Client

GetMockedClient returns a simple mocked go-github client

func GetRepoNameFromURL

func GetRepoNameFromURL(repoURL string, orgName string) (string, error)

GetRepoNameFromURL returns the repository name from the Git repo URL

Types

This section is empty.

Jump to

Keyboard shortcuts

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