Documentation
¶
Index ¶
- Constants
- func ArtifactMatchesRelease(assetName, goos, goarch string) bool
- func GetRepo() string
- func IsGitDiffSignificant(diff string, ignoreChangePatterns map[string]string) (bool, string, error)
- func PRVersionMetadata(m *versioning.MergedVersionReport, labelTypes map[string]github.Label) (string, *versioning.BumpType, []*github.Label)
- type Git
- func (g *Git) Add(arg string) error
- func (g *Git) AttachMCPReleaseTag(path, tagName string, outputs map[string]string) error
- func (g *Git) CheckDirDirty(dir string, ignoreChangePatterns map[string]string) (bool, string, error)
- func (g *Git) CloneRepo() error
- func (g *Git) CommitAndPush(openAPIDocVersion, speakeasyVersion, doc string, action environment.Action, ...) (string, error)
- func (g *Git) CreateOrUpdateDocsPR(branchName string, releaseInfo releases.ReleasesInfo, ...) error
- func (g *Git) CreateOrUpdatePR(info PRInfo) (*github.PullRequest, error)
- func (g *Git) CreateRelease(oldReleaseContent string, languages map[string]releases.LanguageReleaseInfo, ...) error
- func (g *Git) CreateSuggestionPR(branchName, output string) (*int, string, error)
- func (g *Git) CreateTag(tag string, hash string) error
- func (g *Git) DeleteBranch(branchName string) error
- func (g *Git) DeleteIssueComment(commentID int64) error
- func (g *Git) FindAndCheckoutBranch(branchName string) (string, error)
- func (g *Git) FindExistingPR(branchName string, action environment.Action, sourceGeneration bool) (string, *github.PullRequest, error)
- func (g *Git) FindOrCreateBranch(branchName string, action environment.Action) (string, error)
- func (g *Git) GetChangedFilesForPRorBranch() ([]string, *int, error)
- func (g *Git) GetCommitedFiles() ([]string, error)
- func (g *Git) GetCurrentBranch() (string, error)
- func (g *Git) GetDownloadLink(version string) (string, string, error)
- func (g *Git) GetLatestTag() (string, error)
- func (g *Git) GetReleaseByTag(ctx context.Context, tag string) (*github.RepositoryRelease, *github.Response, error)
- func (g *Git) ListIssueComments(prNumber int) ([]*github.IssueComment, error)
- func (g *Git) MergeBranch(branchName string) (string, error)
- func (g *Git) Reset(args ...string) error
- func (g *Git) SetReleaseToPublished(version, directory string) error
- func (g *Git) UpsertLabelTypes(ctx context.Context) map[string]github.Label
- func (g *Git) WriteIssueComment(prNumber int, body string) error
- func (g *Git) WritePRBody(prNumber int, body string) error
- func (g *Git) WritePRComment(prNumber int, fileName, body string, line int) error
- type PRInfo
Constants ¶
View Source
const PublishingCompletedString = "Publishing Completed"
Variables ¶
This section is empty.
Functions ¶
func ArtifactMatchesRelease ¶
func IsGitDiffSignificant ¶
func PRVersionMetadata ¶
func PRVersionMetadata(m *versioning.MergedVersionReport, labelTypes map[string]github.Label) (string, *versioning.BumpType, []*github.Label)
Types ¶
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
func (*Git) AttachMCPReleaseTag ¶
func (*Git) CheckDirDirty ¶
func (*Git) CommitAndPush ¶
func (g *Git) CommitAndPush(openAPIDocVersion, speakeasyVersion, doc string, action environment.Action, sourcesOnly bool, mergedVersionReport *versioning.MergedVersionReport) (string, error)
func (*Git) CreateOrUpdateDocsPR ¶
func (g *Git) CreateOrUpdateDocsPR(branchName string, releaseInfo releases.ReleasesInfo, previousGenVersion string, pr *github.PullRequest) error
func (*Git) CreateOrUpdatePR ¶
func (g *Git) CreateOrUpdatePR(info PRInfo) (*github.PullRequest, error)
func (*Git) CreateRelease ¶
func (g *Git) CreateRelease(oldReleaseContent string, languages map[string]releases.LanguageReleaseInfo, outputs map[string]string, targetSpecificReleaseNotes releases.TargetReleaseNotes) error
func (*Git) CreateSuggestionPR ¶
func (*Git) DeleteBranch ¶
func (*Git) DeleteIssueComment ¶
func (*Git) FindAndCheckoutBranch ¶
func (*Git) FindExistingPR ¶
func (g *Git) FindExistingPR(branchName string, action environment.Action, sourceGeneration bool) (string, *github.PullRequest, error)
func (*Git) FindOrCreateBranch ¶
func (*Git) GetChangedFilesForPRorBranch ¶
func (*Git) GetCommitedFiles ¶
func (*Git) GetCurrentBranch ¶
func (*Git) GetLatestTag ¶
func (*Git) GetReleaseByTag ¶
func (*Git) ListIssueComments ¶
func (g *Git) ListIssueComments(prNumber int) ([]*github.IssueComment, error)
func (*Git) SetReleaseToPublished ¶
func (*Git) UpsertLabelTypes ¶
type PRInfo ¶
type PRInfo struct {
BranchName string
ReleaseInfo *releases.ReleasesInfo
PreviousGenVersion string
PR *github.PullRequest
SourceGeneration bool
LintingReportURL string
ChangesReportURL string
OpenAPIChangeSummary string
VersioningInfo versionbumps.VersioningInfo
}
Click to show internal directories.
Click to hide internal directories.