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 ListReleases(ctx context.Context, client *github.Client, repo string) ([]*github.RepositoryRelease, error)
- 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, user 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 ListReleases ¶ added in v0.21.0
func ListReleases(ctx context.Context, client *github.Client, repo string) ([]*github.RepositoryRelease, error)
ListReleases
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 creates backport issues, performs a cherry-pick of the given commit if it exists.
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
type CreateReleaseOpts struct { Repo string `json:"repo"` Name string `json:"name"` Prerelease bool `json:"pre_release"` Branch string `json:"branch"` ReleaseNotes string `json:"release_notes"` Draft bool `json:"draft"` }
CreateReleaseOpts
type PerformBackportOpts ¶ added in v0.11.0
type PerformBackportOpts struct { Repo string `json:"repo"` Commits []string `json:"commits"` IssueID uint `json:"issue_id"` Branches string `json:"branches"` User string `json:"user"` }
PerformBackportOpts
Click to show internal directories.
Click to hide internal directories.