branchprotections

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthClient

func AuthClient(token string) (client *github.Client)

Types

type RepoBranchProtection

type RepoBranchProtection struct {
	RepoName    string            `json:"repo_name"`
	Branch      string            `json:"branch"`
	IsProtected bool              `json:"is_protected"`
	Protection  github.Protection `json:"protection,omitempty"`
}

func GetBranchProtections

func GetBranchProtections(owner string, token string, repoName string) (rbp []*RepoBranchProtection, err error)

Jump to

Keyboard shortcuts

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