Documentation ¶
Index ¶
- func CreateBackportIssues(ctx context.Context, client *github.Client, origIssue *github.Issue, ...) (*github.Issue, error)
- func CreateRelease(ctx context.Context, client *github.Client, cro *CreateReleaseOpts) (*github.RepositoryRelease, error)
- func CreateReleaseIssue(ctx context.Context, client *github.Client, cri *CreateReleaseIssueOpts) (*github.Issue, error)
- func IsValidRepo(repo string) bool
- func NewGithub(ctx context.Context, token string) *github.Client
- func OrgFromRepo(repo string) (string, error)
- func PerformBackport(ctx context.Context, client *github.Client, pbo *PerformBackportOpts) ([]*github.Issue, error)
- func RetrieveOriginalIssue(ctx context.Context, client *github.Client, repo string, issueID uint) (*github.Issue, error)
- type ChangeLog
- type CreateReleaseIssueOpts
- type CreateReleaseOpts
- type Issue
- type PerformBackportOpts
- type TokenSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBackportIssues ¶
func CreateBackportIssues(ctx context.Context, client *github.Client, origIssue *github.Issue, repo, branch string, i *Issue) (*github.Issue, error)
CreateBackportIssues
func CreateRelease ¶ added in v0.11.0
func CreateRelease(ctx context.Context, client *github.Client, cro *CreateReleaseOpts) (*github.RepositoryRelease, error)
CreateRelease
func CreateReleaseIssue ¶ added in v0.11.0
func CreateReleaseIssue(ctx context.Context, client *github.Client, cri *CreateReleaseIssueOpts) (*github.Issue, error)
CreateReleaseIssue
func IsValidRepo ¶
IsValidRepo determines if the given repository is valid for this program to operate against.
func NewGithub ¶
NewGithub creates a value of type github.Client pointer with the given context and Github token.
func OrgFromRepo ¶
OrgFromRepo gets the Github organization that the given repository is in or returns an error if it is not found.
func PerformBackport ¶ added in v0.11.0
func PerformBackport(ctx context.Context, client *github.Client, pbo *PerformBackportOpts) ([]*github.Issue, error)
PerformBackport
Types ¶
type ChangeLog ¶
ChangeLog contains the found changes for the given release, to be used in to populate the template.
type CreateReleaseIssueOpts ¶ added in v0.11.0
CreateReleaseIssueOpts
type CreateReleaseOpts ¶ added in v0.11.0
CreateReleaseOpts
type PerformBackportOpts ¶ added in v0.11.0
type PerformBackportOpts struct { Repo string `json:"repo"` CommitID string `json:"commit_id"` IssueID uint `json:"issue_id"` Branches string `json:"branches"` }
PerformBackportOpts
Click to show internal directories.
Click to hide internal directories.