Versions in this module Expand all Collapse all v0 v0.1.8 Nov 15, 2023 v0.1.7 Nov 13, 2023 Changes in this version + func CheckBranchExist(ctx context.Context, repoPath, branch string) (bool, error) type Comp + DmModelList []FixModel + HaveDMList map[string]int type FixParams + Branch string + DirectDependencyList []Comp + DmFix bool + type Response struct + DmPreview []Preview + Err error + HaveDMList map[string]int + PrUrl string + Preview []Preview v0.1.6 Jun 1, 2023 Changes in this version + func IsInList(list []T, num T) bool v0.1.5 May 22, 2023 v0.1.4 May 22, 2023 Changes in this version type PropertyModel + CompName string v0.1.3 May 17, 2023 Changes in this version + type MyErrorListener struct + func (e *MyErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, ...) v0.1.2 May 16, 2023 v0.1.1 May 11, 2023 v0.1.0 May 9, 2023 Changes in this version + func CreateBranch(ctx context.Context, client *github.Client, ...) error + func CreateFork(token, TargetOwner, Repo, proxyUrl string) (defaultBranch, targetDefaultBranch string, private, forkBool bool, err error) + func CreatePr(ctx context.Context, client *github.Client, ...) (string, string, int, time.Time, error) + func CreatePullRequest(accessToken, owner, repo, title, body, currentBranch, targetBranch, ... string) (resp *http.Response, err error) + func DelDir(path string) error + func Exists(path string) bool + func FindPropertiesLine(pomPath, targetElement, value string) int + func GetClient(ctx context.Context, token, proxyUrl string) (*github.Client, error) + func GitConfig(ctx context.Context, ...) (string, error) + func GitPushCode(ctx context.Context, path, username, password string) error + func GithubPostHttpByToken(httpUrl, token, proxyUrl string, body interface{}) (error, *http.Response) + func RunGitCommand(ctx context.Context, path, name string, arg ...string) (string, error) + type ChildXMLListener struct + func (l *ChildXMLListener) EnterElement(ctx *parser.ElementContext) + type Comp struct + CompName string + CompVersion string + MinFixVersion string + type Content struct + Line int + Text string + type CreatePullRequestRequest struct + AccessToken string + Base string + Body string + Head string + Title string + type CreatePullResponse struct + Assignees []struct{ ... } + AssigneesNumber int + Base struct{ ... } + Body string + CanMergeCheck bool + ClosedAt interface{} + CommentsUrl string + CommitsUrl string + CreatedAt time.Time + DiffUrl string + Draft bool + Head struct{ ... } + HtmlUrl string + Id int + IssueUrl string + Labels []interface{} + Links struct{ ... } + Locked bool + Mergeable bool + MergedAt interface{} + Milestone interface{} + Number int + PatchUrl string + RefPullRequests []interface{} + ReviewCommentUrl string + ReviewCommentsUrl string + State string + Testers []struct{ ... } + TestersNumber int + Title string + UpdatedAt time.Time + Url string + User struct{ ... } + type FixModel struct + ArtifactId string + CompName string + GroupId string + Line int + NewVersion string + OldVersion string + PomPath string + func GetExtensionFixModelList(pomPath, relativePomPath, compName, compVersion, newVersion string, ...) []FixModel + func GetFixModelList(pomPath, relativePomPath, compName, compVersion, newVersion string, ...) []FixModel + func GetInheritFixModelList(pomPath, relativePomPath, compName, compVersion, newVersion string, ...) []FixModel + type FixParams struct + Body string + CommitHash string + CompList []Comp + Dir string + GitlabUrl string + Owner string + PackageManager string + Password string + ProxyUrl string + Repo string + RepoType string + ShowOnly bool + TargetOwner string + TimeOut time.Duration + Title string + Token string + UserEmail string + UserName string + func (t *FixParams) Fix() (prUrl string, preview []Preview, err error) + func (t *FixParams) GiteeFix() (prUrl string, preview []Preview, err error) + func (t *FixParams) GithubFix() (prUrl string, preview []Preview, err error) + func (t *FixParams) GitlabFix() (preview []Preview, err error) + func (t *FixParams) LocalFix() (preview []Preview, err error) + func (t FixParams) GoFix() (preview []Preview, err error) + func (t FixParams) MavenFix() (preview []Preview, err error) + func (t FixParams) NpmFix() (preview []Preview, err error) + func (t FixParams) PythonFix() (preview []Preview, err error) + func (t FixParams) YarnFix() (preview []Preview, err error) + type GithubForkResp struct + AllowForking bool + ArchiveUrl string + Archived bool + AssigneesUrl string + BlobsUrl string + BranchesUrl string + CloneUrl string + CollaboratorsUrl string + CommentsUrl string + CommitsUrl string + CompareUrl string + ContentsUrl string + ContributorsUrl string + CreatedAt time.Time + DefaultBranch string + DeploymentsUrl string + Description string + Disabled bool + DownloadsUrl string + EventsUrl string + Fork bool + Forks int + ForksCount int + ForksUrl string + FullName string + GitCommitsUrl string + GitRefsUrl string + GitTagsUrl string + GitUrl string + HasDownloads bool + HasIssues bool + HasPages bool + HasProjects bool + HasWiki bool + Homepage string + HooksUrl string + HtmlUrl string + Id int + IsTemplate bool + IssueCommentUrl string + IssueEventsUrl string + IssuesUrl string + KeysUrl string + LabelsUrl string + Language interface{} + LanguagesUrl string + License struct{ ... } + MergesUrl string + MilestonesUrl string + MirrorUrl interface{} + Name string + NetworkCount int + NodeId string + NotificationsUrl string + OpenIssues int + OpenIssuesCount int + Owner struct{ ... } + Parent struct{ ... } + Permissions struct{ ... } + Private bool + PullsUrl string + PushedAt time.Time + ReleasesUrl string + Size int + Source struct{ ... } + SshUrl string + StargazersCount int + StargazersUrl string + StatusesUrl string + SubscribersCount int + SubscribersUrl string + SubscriptionUrl string + SvnUrl string + TagsUrl string + TeamsUrl string + Topics []interface{} + TreesUrl string + UpdatedAt time.Time + Url string + Visibility string + Watchers int + WatchersCount int + WebCommitSignoffRequired bool + type InheritParentBodyXMLListener struct + func (l *InheritParentBodyXMLListener) EnterElement(ctx *parser.ElementContext) + type InheritParentXMLListener struct + func (l *InheritParentXMLListener) EnterElement(ctx *parser.ElementContext) + type InheritXMLListener struct + func (l *InheritXMLListener) EnterElement(ctx *parser.ElementContext) + type ParentXMLListener struct + func (l *ParentXMLListener) EnterElement(ctx *parser.ElementContext) + type Preview struct + Content []Content + Line int + Path string + type PropertyModel struct + Line int + OldVersion string + PomPath string + TagName string + type RepoInfoResponse struct + Assignee []struct{ ... } + AssigneesNumber int + Assigner struct{ ... } + BlobsUrl string + BranchesUrl string + CanComment bool + CollaboratorsUrl string + CommentsUrl string + CommitsUrl string + ContributorsUrl string + CreatedAt time.Time + DefaultBranch string + Description string + Enterprise interface{} + Fork bool + ForksCount int + ForksUrl string + FullName string + Gvp bool + HasIssues bool + HasPage bool + HasWiki bool + Homepage string + HooksUrl string + HtmlUrl string + HumanName string + Id int + Internal bool + IssueComment bool + IssueCommentUrl string + IssuesUrl string + KeysUrl string + LabelsUrl string + Language string + License string + Members []string + MilestonesUrl string + Name string + Namespace struct{ ... } + NotificationsUrl string + OpenIssuesCount int + Outsourced bool + Owner struct{ ... } + Paas interface{} + Parent struct{ ... } + Path string + Private bool + Programs []interface{} + ProjectCreator string + ProjectLabels []interface{} + Public bool + PullRequestsEnabled bool + PullsUrl string + PushedAt time.Time + Recommend bool + ReleasesUrl string + SshUrl string + StargazersCount int + StargazersUrl string + Status string + TagsUrl string + Testers []struct{ ... } + TestersNumber int + UpdatedAt time.Time + Url string + WatchersCount int + type SimpleXMLListener struct + func (l *SimpleXMLListener) ExitElement(ctx *parser.ElementContext)