Help us shape the future of Go! Take the 2026 Go Developer Survey

github

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Github

type Github struct {
	// contains filtered or unexported fields
}

func NewGithub

func NewGithub(c *GithubConfig) *Github

func (*Github) CancelDeployment

func (g *Github) CancelDeployment(ctx context.Context, u *ent.User, r *ent.Repo, d *ent.Deployment, s *ent.DeploymentStatus) error

func (*Github) Client

func (g *Github) Client(c context.Context, token string) *github.Client

func (*Github) CompareCommits

func (g *Github) CompareCommits(ctx context.Context, u *ent.User, r *ent.Repo, base, head string, opt *i.ListOptions) ([]*extent.Commit, []*extent.CommitFile, error)

func (*Github) CreateRemoteDeployment

func (g *Github) CreateRemoteDeployment(ctx context.Context, u *ent.User, r *ent.Repo, d *ent.Deployment, env *extent.Env) (*extent.RemoteDeployment, error)

func (*Github) CreateRemoteDeploymentStatus

func (g *Github) CreateRemoteDeploymentStatus(ctx context.Context, u *ent.User, r *ent.Repo, d *ent.Deployment, ds *extent.RemoteDeploymentStatus) (*extent.RemoteDeploymentStatus, error)

func (*Github) CreateWebhook

func (g *Github) CreateWebhook(ctx context.Context, u *ent.User, r *ent.Repo, c *extent.WebhookConfig) (int64, error)

func (*Github) DeleteWebhook

func (g *Github) DeleteWebhook(ctx context.Context, u *ent.User, r *ent.Repo, id int64) error

func (*Github) GetBranch

func (g *Github) GetBranch(ctx context.Context, u *ent.User, r *ent.Repo, branch string) (*extent.Branch, error)

func (*Github) GetCommit

func (g *Github) GetCommit(ctx context.Context, u *ent.User, r *ent.Repo, sha string) (*extent.Commit, error)

func (*Github) GetConfig

func (g *Github) GetConfig(ctx context.Context, u *ent.User, r *ent.Repo) (*extent.Config, error)

func (*Github) GetConfigRedirectURL

func (g *Github) GetConfigRedirectURL(ctx context.Context, u *ent.User, r *ent.Repo) (string, error)

func (*Github) GetDefaultBranch

func (g *Github) GetDefaultBranch(ctx context.Context, u *ent.User, r *ent.Repo) (*extent.Branch, error)

func (*Github) GetNewConfigRedirectURL

func (g *Github) GetNewConfigRedirectURL(ctx context.Context, u *ent.User, r *ent.Repo) (string, error)

func (*Github) GetRateLimit

func (g *Github) GetRateLimit(ctx context.Context, u *ent.User) (*extent.RateLimit, error)

func (*Github) GetRemoteUserByToken

func (g *Github) GetRemoteUserByToken(ctx context.Context, token string) (*extent.RemoteUser, error)

func (*Github) GetTag

func (g *Github) GetTag(ctx context.Context, u *ent.User, r *ent.Repo, tag string) (*extent.Tag, error)

func (*Github) GraphQLClient

func (g *Github) GraphQLClient(c context.Context, token string) *graphql.Client

func (*Github) ListBranches

func (g *Github) ListBranches(ctx context.Context, u *ent.User, r *ent.Repo, opt *interactor.ListOptions) ([]*extent.Branch, error)

func (*Github) ListCommitStatuses

func (g *Github) ListCommitStatuses(ctx context.Context, u *ent.User, r *ent.Repo, sha string) ([]*extent.Status, error)

func (*Github) ListCommits

func (g *Github) ListCommits(ctx context.Context, u *ent.User, r *ent.Repo, branch string, opt *i.ListOptions) ([]*extent.Commit, error)

func (*Github) ListRemoteOrgsByToken

func (g *Github) ListRemoteOrgsByToken(ctx context.Context, token string) ([]string, error)

func (*Github) ListRemoteRepos

func (g *Github) ListRemoteRepos(ctx context.Context, u *ent.User) ([]*extent.RemoteRepo, error)

func (*Github) ListTags

func (g *Github) ListTags(ctx context.Context, u *ent.User, r *ent.Repo, opt *i.ListOptions) ([]*extent.Tag, error)

ListTags list up tags as ordered by commit date. Github GraphQL explore - https://docs.github.com/en/graphql/overview/explorer

type GithubConfig

type GithubConfig struct {
	BaseURL string
}

type Node

type Node struct {
	Name   string
	Target struct {
		Oid       string
		CommitUrl string
	}
}

Node is tag of Github GraphQL.

Jump to

Keyboard shortcuts

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