github

package
v0.0.0-...-8aabc32 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultBranch    = "main"
	DefaultRepoOwner = "triggermesh"
)

Variables

This section is empty.

Functions

func APIToken

func APIToken() string

APIToken returns a GitHub API token read from the environment.

func CreateCommit

func CreateCommit(client *github.Client, owner, repoName string) *github.Commit

CreateCommit creates a Git commit on the default branch in the repository with the given owner and name.

func CreateRepository

func CreateRepository(client *github.Client, f *framework.Framework) *github.Repository

CreateRepository creates a GitHub repository named after the given framework.Framework with an initialized default branch.

func DeleteRepository

func DeleteRepository(client *github.Client, owner, name string)

DeleteRepository deletes a GitHub repository by owner and name.

func NewClient

func NewClient() *github.Client

NewClient returns a new GitHub client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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