git

package
v0.0.0-...-9fb5bb1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackMerge

func BackMerge(VeaverData veave.Veaver, VeaverRawPayload []byte)

func CheckBranchEval

func CheckBranchEval(context context.Context, client *github.Client, owner, repo string, branches []string) (BranchExistFlag bool, BranchNotFound string)

func CheckIsContributor

func CheckIsContributor(client *github.Client, ctx context.Context, owner, repo string, userlist []string) (bool, error)

func ConditionalPRCheck

func ConditionalPRCheck(ConditionPRFlag bool, resp veave.GithubPayload, PrefixCode string) (StatusCode bool)

func CreateBranch

func CreateBranch(client *github.Client, ctx context.Context, owner, repo, source_branch, destination_branch string)

func CreatePullRequest

func CreatePullRequest(ctx context.Context, gc *github.Client, owner, repo, title, HeadValue, BaseValue, BodyValue string, maintainer_can_modify bool, slackFlag bool, reviewers veave.Veaver, team_reviewers []string)

func DeleteBranch

func DeleteBranch(client *github.Client, ctx context.Context, owner, repo, branch string) (*github.Response, error)

func GetBranch

func GetBranch(ref string) string

func GetRepoDetails

func GetRepoDetails(RepositoryFullName string) (string, string)

func GetReviewersDetails

func GetReviewersDetails(reviewerpayload veave.Veaver) ([]string, []string)

func GetUser

func GetUser(ctx context.Context, gc *github.Client, user string) *github.User

func InSync

func InSync(client *github.Client, ctx context.Context, owner, repo string, Rule veave.Rules, RepGetOptions github.RepositoryContentGetOptions)

func InSyncForce

func InSyncForce(client *github.Client, ctx context.Context, owner, repo, source_branch string, destination_branches []string, branchProtectionFlag string)

func OpenPREval

func OpenPREval(context context.Context, client *github.Client, OrgName, RepoName string) (OpenPRFlag bool)

func Remove

func Remove(client *github.Client, ctx context.Context, owner, repo string, Rule veave.Rules, RepGetOptions github.RepositoryContentGetOptions)

func RemoveBranchProtection

func RemoveBranchProtection(client *github.Client, ctx context.Context, owner, repo, branch string) (*github.Response, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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