gh

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(envPath string, c context.Context) (*github.Client, error)

func CreateEmptyRepo

func CreateEmptyRepo(c *github.Client, ctx context.Context) (*github.Repository, error)

func CreateGitignore

func CreateGitignore(c *github.Client, ctx context.Context, r *github.Repository, lang string) error

func CreateLicense added in v0.5.0

func CreateLicense(c *github.Client, ctx context.Context, l string, rName string) error

func CreateReadme

func CreateReadme(c *github.Client, ctx context.Context, r *github.Repository) error

func CreateRepoWithBoth

func CreateRepoWithBoth(c *github.Client, ctx context.Context) (*github.Repository, error)

func CreateRepoWithGitignore

func CreateRepoWithGitignore(c *github.Client, ctx context.Context) (*github.Repository, error)

func CreateRepoWithReadme

func CreateRepoWithReadme(c *github.Client, ctx context.Context) (*github.Repository, error)

func GetApache added in v0.5.0

func GetApache(c *github.Client, ctx context.Context) (*github.License, error)

func GetBSD2 added in v0.5.0

func GetBSD2(c *github.Client, ctx context.Context) (*github.License, error)

func GetBSD3 added in v0.5.0

func GetBSD3(c *github.Client, ctx context.Context) (*github.License, error)

func GetBSL added in v0.5.0

func GetBSL(c *github.Client, ctx context.Context) (*github.License, error)

func GetCC0 added in v0.5.0

func GetCC0(c *github.Client, ctx context.Context) (*github.License, error)

func GetGPL2 added in v0.5.0

func GetGPL2(c *github.Client, ctx context.Context) (*github.License, error)

func GetGPL3 added in v0.5.0

func GetGPL3(c *github.Client, ctx context.Context) (*github.License, error)

func GetGitignore

func GetGitignore(c *github.Client, ctx context.Context, lang string) (string, error)

func GetIssuesAssigned added in v0.2.0

func GetIssuesAssigned(c *github.Client, ctx context.Context) ([]*github.Issue, error)

func GetLGPL added in v0.5.0

func GetLGPL(c *github.Client, ctx context.Context) (*github.License, error)

func GetMIT added in v0.5.0

func GetMIT(c *github.Client, ctx context.Context) (*github.License, error)

func GetMPL added in v0.5.0

func GetMPL(c *github.Client, ctx context.Context) (*github.License, error)

func GetUnreadNotifications added in v0.8.0

func GetUnreadNotifications(c *github.Client, ctx context.Context) ([]*github.Notification, error)

func MarkNotificationsRead added in v0.10.0

func MarkNotificationsRead(c *github.Client, ctx context.Context) error

func Ping added in v0.12.0

func Ping(c *github.Client, ctx context.Context) error

Do a form of token validity check

func QuickIgnore added in v0.6.0

func QuickIgnore(c *github.Client, ctx context.Context, lang string) (string, error)

Print the gitignore contents to stdout Can be redirected to a file(.gitignore) Incase one already has a repo and wants to add the .gitignore

Types

This section is empty.

Jump to

Keyboard shortcuts

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