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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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