Documentation
¶
Index ¶
- func CheckBranchExist(ctx context.Context, repoPath, branch string) (bool, error)
- 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 GetFixModelList(pomPath, relativePomPath, compName, compVersion, newVersion string, ...) ([]FixModel, []FixModel, int, int)
- 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 IsInList[T int | string | int64](list []T, num T) bool
- func RunGitCommand(ctx context.Context, path, name string, arg ...string) (string, error)
- type ChildXMLListener
- type CliXMLListener
- type Comp
- type Content
- type CreatePullRequestRequest
- type CreatePullResponse
- type Dependency
- type FixModel
- type FixParams
- func (t *FixParams) Fix() (response Response)
- func (t *FixParams) GiteeFix() (prUrl string, preview []Preview, err error)
- func (t *FixParams) GithubFix() (prUrl string, preview []Preview, err error)
- func (t *FixParams) GitlabFix() (PrUrl string, preview []Preview, err error)
- func (t FixParams) GoFix() (preview []Preview, err error)
- func (t *FixParams) LocalFix() (preview []Preview, dmPreview []Preview, haveDMList map[string]int, err error)
- func (t FixParams) MavenFix() (preview []Preview, dmPreview []Preview, haveDMList map[string]int, err error)
- func (t FixParams) MavenFixNew() (preview []Preview, dmPreview []Preview, haveDMList map[string]int, 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
- type InheritParentBodyXMLListener
- type InheritParentXMLListener
- type InheritXMLListener
- type MyErrorListener
- type ParentXMLListener
- type Preview
- type Properties
- type PropertyModel
- type RepoInfoResponse
- type Response
- type SimpleXMLListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBranchExist ¶ added in v0.1.7
检测分支是否存在
func CreateBranch ¶
func CreateBranch(ctx context.Context, client *github.Client, owner, repo, oldBranchName, newBranchName string) error
创建分支
func CreateFork ¶
func CreateFork(token, TargetOwner, Repo, proxyUrl string) (defaultBranch, targetDefaultBranch string, private, forkBool bool, err error)
从GitHub源仓库fork自己的仓库
func CreatePr ¶
func CreatePr(ctx context.Context, client *github.Client, owner, repo, head, base, title, body string) (string, string, int, time.Time, error)
创建pr
func CreatePullRequest ¶
func FindPropertiesLine ¶
func GetFixModelList ¶
func GitConfig ¶
func GitConfig(ctx context.Context, path, repoPath, branch, gitRemote, commitHash, proxyUrl, username, password, token string) (string, error)
设置git配置
func GitPushCode ¶
带用户名提交push
func GithubPostHttpByToken ¶
Types ¶
type ChildXMLListener ¶
type ChildXMLListener struct {
parser.BaseXMLParserListener
// contains filtered or unexported fields
}
func (*ChildXMLListener) EnterElement ¶
func (l *ChildXMLListener) EnterElement(ctx *parser.ElementContext)
type CliXMLListener ¶ added in v0.1.9
type CliXMLListener struct {
parser.BaseXMLParserListener
FilePath string
AbsoluteFilePath string
DependencyManagement []Dependency
Dependencies []Dependency
Properties []Properties
}
func Cli ¶ added in v0.1.9
func Cli(dir string, pomPathList []string) (result []CliXMLListener)
func (*CliXMLListener) EnterElement ¶ added in v0.1.9
func (l *CliXMLListener) EnterElement(ctx *parser.ElementContext)
type CreatePullResponse ¶
type CreatePullResponse struct {
Id int `json:"id"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
DiffUrl string `json:"diff_url"`
PatchUrl string `json:"patch_url"`
IssueUrl string `json:"issue_url"`
CommitsUrl string `json:"commits_url"`
ReviewCommentsUrl string `json:"review_comments_url"`
ReviewCommentUrl string `json:"review_comment_url"`
CommentsUrl string `json:"comments_url"`
Number int `json:"number"`
State string `json:"state"`
AssigneesNumber int `json:"assignees_number"`
TestersNumber int `json:"testers_number"`
Assignees []struct {
Id int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
Remark string `json:"remark"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
Assignee bool `json:"assignee"`
CodeOwner bool `json:"code_owner"`
Accept bool `json:"accept"`
} `json:"assignees"`
Testers []struct {
Id int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
Remark string `json:"remark"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
Assignee bool `json:"assignee"`
CodeOwner bool `json:"code_owner"`
Accept bool `json:"accept"`
} `json:"testers"`
Milestone interface{} `json:"milestone"`
Labels []interface{} `json:"labels"`
Locked bool `json:"locked"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
ClosedAt interface{} `json:"closed_at"`
Draft bool `json:"draft"`
MergedAt interface{} `json:"merged_at"`
Mergeable bool `json:"mergeable"`
CanMergeCheck bool `json:"can_merge_check"`
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
Html struct {
Href string `json:"href"`
} `json:"html"`
Issue struct {
Href string `json:"href"`
} `json:"issue"`
Comments struct {
Href string `json:"href"`
} `json:"comments"`
ReviewComments struct {
Href string `json:"href"`
} `json:"review_comments"`
ReviewComment struct {
Href string `json:"href"`
} `json:"review_comment"`
Commits struct {
Href string `json:"href"`
} `json:"commits"`
} `json:"_links"`
User struct {
Id int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
Remark string `json:"remark"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
} `json:"user"`
RefPullRequests []interface{} `json:"ref_pull_requests"`
Title string `json:"title"`
Body string `json:"body"`
Head struct {
Label string `json:"label"`
Ref string `json:"ref"`
Sha string `json:"sha"`
User struct {
Id int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
Remark string `json:"remark"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
} `json:"user"`
Repo struct {
Id int `json:"id"`
FullName string `json:"full_name"`
HumanName string `json:"human_name"`
Url string `json:"url"`
Namespace struct {
Id int `json:"id"`
Type string `json:"type"`
Name string `json:"name"`
Path string `json:"path"`
HtmlUrl string `json:"html_url"`
} `json:"namespace"`
Path string `json:"path"`
Name string `json:"name"`
Owner struct {
Id int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
Remark string `json:"remark"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
} `json:"owner"`
Assigner struct {
Id int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
Remark string `json:"remark"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
} `json:"assigner"`
Description string `json:"description"`
Private bool `json:"private"`
Public bool `json:"public"`
Internal bool `json:"internal"`
Fork bool `json:"fork"`
HtmlUrl string `json:"html_url"`
SshUrl string `json:"ssh_url"`
} `json:"repo"`
} `json:"head"`
Base struct {
Label string `json:"label"`
Ref string `json:"ref"`
Sha string `json:"sha"`
User struct {
Id int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
Remark string `json:"remark"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
} `json:"user"`
Repo struct {
Id int `json:"id"`
FullName string `json:"full_name"`
HumanName string `json:"human_name"`
Url string `json:"url"`
Namespace struct {
Id int `json:"id"`
Type string `json:"type"`
Name string `json:"name"`
Path string `json:"path"`
HtmlUrl string `json:"html_url"`
} `json:"namespace"`
Path string `json:"path"`
Name string `json:"name"`
Owner struct {
Id int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
Remark string `json:"remark"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
} `json:"owner"`
Assigner struct {
Id int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
Remark string `json:"remark"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
} `json:"assigner"`
Description string `json:"description"`
Private bool `json:"private"`
Public bool `json:"public"`
Internal bool `json:"internal"`
Fork bool `json:"fork"`
HtmlUrl string `json:"html_url"`
SshUrl string `json:"ssh_url"`
} `json:"repo"`
} `json:"base"`
}
type Dependency ¶ added in v0.1.9
type FixModel ¶
type FixModel struct {
Line int
OldVersion string
NewVersion string
GroupId string
ArtifactId string
CompName string
PomPath string
// contains filtered or unexported fields
}
func GetExtensionFixModelList ¶
func GetExtensionFixModelList(pomPath, relativePomPath, compName, compVersion, newVersion string, model map[string][]PropertyModel) []FixModel
func GetInheritFixModelList ¶
func GetInheritFixModelList(pomPath, relativePomPath, compName, compVersion, newVersion string, model map[string][]PropertyModel) []FixModel
type FixParams ¶
type FixParams struct {
// 必填
ShowOnly bool // 仅展示pr预览 不进行真的pr提交
TimeOut time.Duration //超时时间 单位秒 默认60秒
RepoType string // 仓库类型 github gitee gitlab local
CompList []Comp
PackageManager string // 包管理器
DmFix bool
DirectDependencyList []Comp
// local必填
Dir string // 检测类型中需要指定文件夹
// 非local必填
ProxyUrl string // 可能需要的代理
GitlabUrl string // Gitlab地址
CommitHash string // 提交的hash
TargetOwner string // 目标 仓库拥有者
Owner string // 当前用户 仓库拥有者
Repo string // 仓库路径 不变
Branch string // 提交的hash对应的分支
// 仓库类型 用户相关
UserName string // 设置git用户名
Password string
UserEmail string // 设置git用户邮箱
Token string // GitHub用户token Gitee用户AccessToken Gitlab用户token
// pr提交相关
Title string // pr 标题
Body string // pr 内容
// contains filtered or unexported fields
}
func (FixParams) MavenFixNew ¶ added in v0.1.9
type GithubForkResp ¶
type GithubForkResp struct {
Id int `json:"id"`
NodeId string `json:"node_id"`
Name string `json:"name"`
FullName string `json:"full_name"`
Private bool `json:"private"`
Owner struct {
Login string `json:"login"`
Id int `json:"id"`
NodeId string `json:"node_id"`
AvatarUrl string `json:"avatar_url"`
GravatarId string `json:"gravatar_id"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `json:"owner"`
HtmlUrl string `json:"html_url"`
Description string `json:"description"`
Fork bool `json:"fork"`
Url string `json:"url"`
ForksUrl string `json:"forks_url"`
KeysUrl string `json:"keys_url"`
CollaboratorsUrl string `json:"collaborators_url"`
TeamsUrl string `json:"teams_url"`
HooksUrl string `json:"hooks_url"`
IssueEventsUrl string `json:"issue_events_url"`
EventsUrl string `json:"events_url"`
AssigneesUrl string `json:"assignees_url"`
BranchesUrl string `json:"branches_url"`
TagsUrl string `json:"tags_url"`
BlobsUrl string `json:"blobs_url"`
GitTagsUrl string `json:"git_tags_url"`
GitRefsUrl string `json:"git_refs_url"`
TreesUrl string `json:"trees_url"`
StatusesUrl string `json:"statuses_url"`
LanguagesUrl string `json:"languages_url"`
StargazersUrl string `json:"stargazers_url"`
ContributorsUrl string `json:"contributors_url"`
SubscribersUrl string `json:"subscribers_url"`
SubscriptionUrl string `json:"subscription_url"`
CommitsUrl string `json:"commits_url"`
GitCommitsUrl string `json:"git_commits_url"`
CommentsUrl string `json:"comments_url"`
IssueCommentUrl string `json:"issue_comment_url"`
ContentsUrl string `json:"contents_url"`
CompareUrl string `json:"compare_url"`
MergesUrl string `json:"merges_url"`
ArchiveUrl string `json:"archive_url"`
DownloadsUrl string `json:"downloads_url"`
IssuesUrl string `json:"issues_url"`
PullsUrl string `json:"pulls_url"`
MilestonesUrl string `json:"milestones_url"`
NotificationsUrl string `json:"notifications_url"`
LabelsUrl string `json:"labels_url"`
ReleasesUrl string `json:"releases_url"`
DeploymentsUrl string `json:"deployments_url"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
PushedAt time.Time `json:"pushed_at"`
GitUrl string `json:"git_url"`
SshUrl string `json:"ssh_url"`
CloneUrl string `json:"clone_url"`
SvnUrl string `json:"svn_url"`
Homepage string `json:"homepage"`
Size int `json:"size"`
StargazersCount int `json:"stargazers_count"`
WatchersCount int `json:"watchers_count"`
Language interface{} `json:"language"`
HasIssues bool `json:"has_issues"`
HasProjects bool `json:"has_projects"`
HasDownloads bool `json:"has_downloads"`
HasWiki bool `json:"has_wiki"`
HasPages bool `json:"has_pages"`
ForksCount int `json:"forks_count"`
MirrorUrl interface{} `json:"mirror_url"`
Archived bool `json:"archived"`
Disabled bool `json:"disabled"`
OpenIssuesCount int `json:"open_issues_count"`
License struct {
Key string `json:"key"`
Name string `json:"name"`
SpdxId string `json:"spdx_id"`
Url string `json:"url"`
NodeId string `json:"node_id"`
} `json:"license"`
AllowForking bool `json:"allow_forking"`
IsTemplate bool `json:"is_template"`
WebCommitSignoffRequired bool `json:"web_commit_signoff_required"`
Topics []interface{} `json:"topics"`
Visibility string `json:"visibility"`
Forks int `json:"forks"`
OpenIssues int `json:"open_issues"`
Watchers int `json:"watchers"`
DefaultBranch string `json:"default_branch"`
Permissions struct {
Admin bool `json:"admin"`
Maintain bool `json:"maintain"`
Push bool `json:"push"`
Triage bool `json:"triage"`
Pull bool `json:"pull"`
} `json:"permissions"`
Parent struct {
Id int `json:"id"`
NodeId string `json:"node_id"`
Name string `json:"name"`
FullName string `json:"full_name"`
Private bool `json:"private"`
Owner struct {
Login string `json:"login"`
Id int `json:"id"`
NodeId string `json:"node_id"`
AvatarUrl string `json:"avatar_url"`
GravatarId string `json:"gravatar_id"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `json:"owner"`
HtmlUrl string `json:"html_url"`
Description string `json:"description"`
Fork bool `json:"fork"`
Url string `json:"url"`
ForksUrl string `json:"forks_url"`
KeysUrl string `json:"keys_url"`
CollaboratorsUrl string `json:"collaborators_url"`
TeamsUrl string `json:"teams_url"`
HooksUrl string `json:"hooks_url"`
IssueEventsUrl string `json:"issue_events_url"`
EventsUrl string `json:"events_url"`
AssigneesUrl string `json:"assignees_url"`
BranchesUrl string `json:"branches_url"`
TagsUrl string `json:"tags_url"`
BlobsUrl string `json:"blobs_url"`
GitTagsUrl string `json:"git_tags_url"`
GitRefsUrl string `json:"git_refs_url"`
TreesUrl string `json:"trees_url"`
StatusesUrl string `json:"statuses_url"`
LanguagesUrl string `json:"languages_url"`
StargazersUrl string `json:"stargazers_url"`
ContributorsUrl string `json:"contributors_url"`
SubscribersUrl string `json:"subscribers_url"`
SubscriptionUrl string `json:"subscription_url"`
CommitsUrl string `json:"commits_url"`
GitCommitsUrl string `json:"git_commits_url"`
CommentsUrl string `json:"comments_url"`
IssueCommentUrl string `json:"issue_comment_url"`
ContentsUrl string `json:"contents_url"`
CompareUrl string `json:"compare_url"`
MergesUrl string `json:"merges_url"`
ArchiveUrl string `json:"archive_url"`
DownloadsUrl string `json:"downloads_url"`
IssuesUrl string `json:"issues_url"`
PullsUrl string `json:"pulls_url"`
MilestonesUrl string `json:"milestones_url"`
NotificationsUrl string `json:"notifications_url"`
LabelsUrl string `json:"labels_url"`
ReleasesUrl string `json:"releases_url"`
DeploymentsUrl string `json:"deployments_url"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
PushedAt time.Time `json:"pushed_at"`
GitUrl string `json:"git_url"`
SshUrl string `json:"ssh_url"`
CloneUrl string `json:"clone_url"`
SvnUrl string `json:"svn_url"`
Homepage string `json:"homepage"`
Size int `json:"size"`
StargazersCount int `json:"stargazers_count"`
WatchersCount int `json:"watchers_count"`
Language string `json:"language"`
HasIssues bool `json:"has_issues"`
HasProjects bool `json:"has_projects"`
HasDownloads bool `json:"has_downloads"`
HasWiki bool `json:"has_wiki"`
HasPages bool `json:"has_pages"`
ForksCount int `json:"forks_count"`
MirrorUrl interface{} `json:"mirror_url"`
Archived bool `json:"archived"`
Disabled bool `json:"disabled"`
OpenIssuesCount int `json:"open_issues_count"`
License struct {
Key string `json:"key"`
Name string `json:"name"`
SpdxId string `json:"spdx_id"`
Url string `json:"url"`
NodeId string `json:"node_id"`
} `json:"license"`
AllowForking bool `json:"allow_forking"`
IsTemplate bool `json:"is_template"`
WebCommitSignoffRequired bool `json:"web_commit_signoff_required"`
Topics []string `json:"topics"`
Visibility string `json:"visibility"`
Forks int `json:"forks"`
OpenIssues int `json:"open_issues"`
Watchers int `json:"watchers"`
DefaultBranch string `json:"default_branch"`
} `json:"parent"`
Source struct {
Id int `json:"id"`
NodeId string `json:"node_id"`
Name string `json:"name"`
FullName string `json:"full_name"`
Private bool `json:"private"`
Owner struct {
Login string `json:"login"`
Id int `json:"id"`
NodeId string `json:"node_id"`
AvatarUrl string `json:"avatar_url"`
GravatarId string `json:"gravatar_id"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `json:"owner"`
HtmlUrl string `json:"html_url"`
Description string `json:"description"`
Fork bool `json:"fork"`
Url string `json:"url"`
ForksUrl string `json:"forks_url"`
KeysUrl string `json:"keys_url"`
CollaboratorsUrl string `json:"collaborators_url"`
TeamsUrl string `json:"teams_url"`
HooksUrl string `json:"hooks_url"`
IssueEventsUrl string `json:"issue_events_url"`
EventsUrl string `json:"events_url"`
AssigneesUrl string `json:"assignees_url"`
BranchesUrl string `json:"branches_url"`
TagsUrl string `json:"tags_url"`
BlobsUrl string `json:"blobs_url"`
GitTagsUrl string `json:"git_tags_url"`
GitRefsUrl string `json:"git_refs_url"`
TreesUrl string `json:"trees_url"`
StatusesUrl string `json:"statuses_url"`
LanguagesUrl string `json:"languages_url"`
StargazersUrl string `json:"stargazers_url"`
ContributorsUrl string `json:"contributors_url"`
SubscribersUrl string `json:"subscribers_url"`
SubscriptionUrl string `json:"subscription_url"`
CommitsUrl string `json:"commits_url"`
GitCommitsUrl string `json:"git_commits_url"`
CommentsUrl string `json:"comments_url"`
IssueCommentUrl string `json:"issue_comment_url"`
ContentsUrl string `json:"contents_url"`
CompareUrl string `json:"compare_url"`
MergesUrl string `json:"merges_url"`
ArchiveUrl string `json:"archive_url"`
DownloadsUrl string `json:"downloads_url"`
IssuesUrl string `json:"issues_url"`
PullsUrl string `json:"pulls_url"`
MilestonesUrl string `json:"milestones_url"`
NotificationsUrl string `json:"notifications_url"`
LabelsUrl string `json:"labels_url"`
ReleasesUrl string `json:"releases_url"`
DeploymentsUrl string `json:"deployments_url"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
PushedAt time.Time `json:"pushed_at"`
GitUrl string `json:"git_url"`
SshUrl string `json:"ssh_url"`
CloneUrl string `json:"clone_url"`
SvnUrl string `json:"svn_url"`
Homepage string `json:"homepage"`
Size int `json:"size"`
StargazersCount int `json:"stargazers_count"`
WatchersCount int `json:"watchers_count"`
Language string `json:"language"`
HasIssues bool `json:"has_issues"`
HasProjects bool `json:"has_projects"`
HasDownloads bool `json:"has_downloads"`
HasWiki bool `json:"has_wiki"`
HasPages bool `json:"has_pages"`
ForksCount int `json:"forks_count"`
MirrorUrl interface{} `json:"mirror_url"`
Archived bool `json:"archived"`
Disabled bool `json:"disabled"`
OpenIssuesCount int `json:"open_issues_count"`
License struct {
Key string `json:"key"`
Name string `json:"name"`
SpdxId string `json:"spdx_id"`
Url string `json:"url"`
NodeId string `json:"node_id"`
} `json:"license"`
AllowForking bool `json:"allow_forking"`
IsTemplate bool `json:"is_template"`
WebCommitSignoffRequired bool `json:"web_commit_signoff_required"`
Topics []string `json:"topics"`
Visibility string `json:"visibility"`
Forks int `json:"forks"`
OpenIssues int `json:"open_issues"`
Watchers int `json:"watchers"`
DefaultBranch string `json:"default_branch"`
} `json:"source"`
NetworkCount int `json:"network_count"`
SubscribersCount int `json:"subscribers_count"`
}
type InheritParentBodyXMLListener ¶
type InheritParentBodyXMLListener struct {
parser.BaseXMLParserListener
// contains filtered or unexported fields
}
func (*InheritParentBodyXMLListener) EnterElement ¶
func (l *InheritParentBodyXMLListener) EnterElement(ctx *parser.ElementContext)
type InheritParentXMLListener ¶
type InheritParentXMLListener struct {
parser.BaseXMLParserListener
// contains filtered or unexported fields
}
func (*InheritParentXMLListener) EnterElement ¶
func (l *InheritParentXMLListener) EnterElement(ctx *parser.ElementContext)
type InheritXMLListener ¶
type InheritXMLListener struct {
parser.BaseXMLParserListener
// contains filtered or unexported fields
}
func (*InheritXMLListener) EnterElement ¶
func (l *InheritXMLListener) EnterElement(ctx *parser.ElementContext)
type MyErrorListener ¶ added in v0.1.3
type MyErrorListener struct {
antlr.DefaultErrorListener
// contains filtered or unexported fields
}
func (*MyErrorListener) SyntaxError ¶ added in v0.1.3
func (e *MyErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, msg string, an antlr.RecognitionException)
type ParentXMLListener ¶
type ParentXMLListener struct {
parser.BaseXMLParserListener
// contains filtered or unexported fields
}
func (*ParentXMLListener) EnterElement ¶
func (l *ParentXMLListener) EnterElement(ctx *parser.ElementContext)
type Properties ¶ added in v0.1.9
type PropertyModel ¶
type RepoInfoResponse ¶
type RepoInfoResponse struct {
Id int `json:"id"`
FullName string `json:"full_name"`
HumanName string `json:"human_name"`
Url string `json:"url"`
Namespace struct {
Id int `json:"id"`
Type string `json:"type"`
Name string `json:"name"`
Path string `json:"path"`
HtmlUrl string `json:"html_url"`
} `json:"namespace"`
Path string `json:"path"`
Name string `json:"name"`
Owner struct {
Id int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
Remark string `json:"remark"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
} `json:"owner"`
Assigner struct {
Id int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
Remark string `json:"remark"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
} `json:"assigner"`
Description string `json:"description"`
Private bool `json:"private"`
Public bool `json:"public"`
Internal bool `json:"internal"`
Fork bool `json:"fork"`
HtmlUrl string `json:"html_url"`
SshUrl string `json:"ssh_url"`
ForksUrl string `json:"forks_url"`
KeysUrl string `json:"keys_url"`
CollaboratorsUrl string `json:"collaborators_url"`
HooksUrl string `json:"hooks_url"`
BranchesUrl string `json:"branches_url"`
TagsUrl string `json:"tags_url"`
BlobsUrl string `json:"blobs_url"`
StargazersUrl string `json:"stargazers_url"`
ContributorsUrl string `json:"contributors_url"`
CommitsUrl string `json:"commits_url"`
CommentsUrl string `json:"comments_url"`
IssueCommentUrl string `json:"issue_comment_url"`
IssuesUrl string `json:"issues_url"`
PullsUrl string `json:"pulls_url"`
MilestonesUrl string `json:"milestones_url"`
NotificationsUrl string `json:"notifications_url"`
LabelsUrl string `json:"labels_url"`
ReleasesUrl string `json:"releases_url"`
Recommend bool `json:"recommend"`
Gvp bool `json:"gvp"`
Homepage string `json:"homepage"`
Language string `json:"language"`
ForksCount int `json:"forks_count"`
StargazersCount int `json:"stargazers_count"`
WatchersCount int `json:"watchers_count"`
DefaultBranch string `json:"default_branch"`
OpenIssuesCount int `json:"open_issues_count"`
HasIssues bool `json:"has_issues"`
HasWiki bool `json:"has_wiki"`
IssueComment bool `json:"issue_comment"`
CanComment bool `json:"can_comment"`
PullRequestsEnabled bool `json:"pull_requests_enabled"`
HasPage bool `json:"has_page"`
License string `json:"license"`
Outsourced bool `json:"outsourced"`
ProjectCreator string `json:"project_creator"`
Members []string `json:"members"`
PushedAt time.Time `json:"pushed_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Parent struct {
Id int `json:"id"`
FullName string `json:"full_name"`
HumanName string `json:"human_name"`
Url string `json:"url"`
Namespace struct {
Id int `json:"id"`
Type string `json:"type"`
Name string `json:"name"`
Path string `json:"path"`
HtmlUrl string `json:"html_url"`
} `json:"namespace"`
Path string `json:"path"`
Name string `json:"name"`
Owner struct {
Id int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
Remark string `json:"remark"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
} `json:"owner"`
Assigner struct {
Id int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
Remark string `json:"remark"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
} `json:"assigner"`
Description string `json:"description"`
Private bool `json:"private"`
Public bool `json:"public"`
Internal bool `json:"internal"`
Fork bool `json:"fork"`
HtmlUrl string `json:"html_url"`
SshUrl string `json:"ssh_url"`
ForksUrl string `json:"forks_url"`
KeysUrl string `json:"keys_url"`
CollaboratorsUrl string `json:"collaborators_url"`
HooksUrl string `json:"hooks_url"`
BranchesUrl string `json:"branches_url"`
TagsUrl string `json:"tags_url"`
BlobsUrl string `json:"blobs_url"`
StargazersUrl string `json:"stargazers_url"`
ContributorsUrl string `json:"contributors_url"`
CommitsUrl string `json:"commits_url"`
CommentsUrl string `json:"comments_url"`
IssueCommentUrl string `json:"issue_comment_url"`
IssuesUrl string `json:"issues_url"`
PullsUrl string `json:"pulls_url"`
MilestonesUrl string `json:"milestones_url"`
NotificationsUrl string `json:"notifications_url"`
LabelsUrl string `json:"labels_url"`
ReleasesUrl string `json:"releases_url"`
Recommend bool `json:"recommend"`
Gvp bool `json:"gvp"`
Homepage string `json:"homepage"`
Language string `json:"language"`
ForksCount int `json:"forks_count"`
StargazersCount int `json:"stargazers_count"`
WatchersCount int `json:"watchers_count"`
DefaultBranch string `json:"default_branch"`
OpenIssuesCount int `json:"open_issues_count"`
HasIssues bool `json:"has_issues"`
HasWiki bool `json:"has_wiki"`
IssueComment bool `json:"issue_comment"`
CanComment bool `json:"can_comment"`
PullRequestsEnabled bool `json:"pull_requests_enabled"`
HasPage bool `json:"has_page"`
License string `json:"license"`
Outsourced bool `json:"outsourced"`
ProjectCreator string `json:"project_creator"`
Members []string `json:"members"`
PushedAt time.Time `json:"pushed_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Parent interface{} `json:"parent"`
Paas interface{} `json:"paas"`
AssigneesNumber int `json:"assignees_number"`
TestersNumber int `json:"testers_number"`
Assignee []struct {
Id int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
Remark string `json:"remark"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
} `json:"assignee"`
Testers []struct {
Id int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
Remark string `json:"remark"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
} `json:"testers"`
Status string `json:"status"`
Programs []interface{} `json:"programs"`
Enterprise interface{} `json:"enterprise"`
ProjectLabels []interface{} `json:"project_labels"`
} `json:"parent"`
Paas interface{} `json:"paas"`
AssigneesNumber int `json:"assignees_number"`
TestersNumber int `json:"testers_number"`
Assignee []struct {
Id int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
Remark string `json:"remark"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
} `json:"assignee"`
Testers []struct {
Id int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
Url string `json:"url"`
HtmlUrl string `json:"html_url"`
Remark string `json:"remark"`
FollowersUrl string `json:"followers_url"`
FollowingUrl string `json:"following_url"`
GistsUrl string `json:"gists_url"`
StarredUrl string `json:"starred_url"`
SubscriptionsUrl string `json:"subscriptions_url"`
OrganizationsUrl string `json:"organizations_url"`
ReposUrl string `json:"repos_url"`
EventsUrl string `json:"events_url"`
ReceivedEventsUrl string `json:"received_events_url"`
Type string `json:"type"`
} `json:"testers"`
Status string `json:"status"`
Programs []interface{} `json:"programs"`
Enterprise interface{} `json:"enterprise"`
ProjectLabels []interface{} `json:"project_labels"`
}
type SimpleXMLListener ¶
type SimpleXMLListener struct {
parser.BaseXMLParserListener
// contains filtered or unexported fields
}
func (*SimpleXMLListener) ExitElement ¶
func (l *SimpleXMLListener) ExitElement(ctx *parser.ElementContext)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.