git_models

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitlabWebHook

type GitlabWebHook struct {
	ObjectKind   enum.TaskAction `json:"object_kind"` // tag_push, push, merge_request
	EventName    string          `json:"event_name"`
	Before       string          `json:"before"`
	After        string          `json:"after"`
	Ref          string          `json:"ref"` // refs/tags/v0.0.1-dev,refs/heads/master
	CheckoutSha  string          `json:"checkout_sha"`
	Message      string          `json:"message"`
	UserId       int             `json:"user_id"`
	UserName     string          `json:"user_name"`
	UserUsername string          `json:"user_username"`
	UserEmail    string          `json:"user_email"`
	UserAvatar   string          `json:"user_avatar"`
	ProjectId    int             `json:"project_id"`
	Project      struct {
		Id                int         `json:"id"`
		Name              string      `json:"name"`
		Description       string      `json:"description"`
		WebUrl            string      `json:"web_url"`
		AvatarUrl         interface{} `json:"avatar_url"`
		GitSshUrl         string      `json:"git_ssh_url"`
		GitHttpUrl        string      `json:"git_http_url"`
		Namespace         string      `json:"namespace"`
		VisibilityLevel   int         `json:"visibility_level"`
		PathWithNamespace string      `json:"path_with_namespace"`
		DefaultBranch     string      `json:"default_branch"`
		CiConfigPath      string      `json:"ci_config_path"`
		Homepage          string      `json:"homepage"`
		Url               string      `json:"url"`
		SshUrl            string      `json:"ssh_url"`
		HttpUrl           string      `json:"http_url"`
	} `json:"project"`
	Commits []struct {
		Id        string    `json:"id"`
		Message   string    `json:"message"`
		Title     string    `json:"title"`
		Timestamp time.Time `json:"timestamp"`
		Url       string    `json:"url"`
		Author    struct {
			Name  string `json:"name"`
			Email string `json:"email"`
		} `json:"author"`
		Added    []string      `json:"added"`
		Modified []string      `json:"modified"`
		Removed  []interface{} `json:"removed"`
	} `json:"commits"`
	TotalCommitsCount int `json:"total_commits_count"`
	PushOptions       struct {
	} `json:"push_options"`
	ObjectAttributes *ObjectAttributes `json:"object_attributes"` // mg
	Labels           []interface{}     `json:"labels"`
	Changes          struct {
		StateId struct {
			Previous int `json:"previous"`
			Current  int `json:"current"`
		} `json:"state_id"`
		UpdatedAt struct {
			Previous string `json:"previous"`
			Current  string `json:"current"`
		} `json:"updated_at"`
	} `json:"changes"`
	Repository struct {
		Name            string `json:"name"`
		Url             string `json:"url"`
		Description     string `json:"description"`
		Homepage        string `json:"homepage"`
		GitHttpUrl      string `json:"git_http_url"`
		GitSshUrl       string `json:"git_ssh_url"`
		VisibilityLevel int    `json:"visibility_level"`
	} `json:"repository"`
}

type ObjectAttributes

type ObjectAttributes struct {
	AssigneeId     interface{} `json:"assignee_id"`
	AuthorId       int         `json:"author_id"`
	CreatedAt      string      `json:"created_at"`
	Description    string      `json:"description"`
	HeadPipelineId interface{} `json:"head_pipeline_id"`
	Id             int         `json:"id"`
	Iid            int         `json:"iid"`
	LastEditedAt   interface{} `json:"last_edited_at"`
	LastEditedById interface{} `json:"last_edited_by_id"`
	MergeCommitSha string      `json:"merge_commit_sha"`
	MergeError     interface{} `json:"merge_error"`
	MergeParams    struct {
		ForceRemoveSourceBranch string `json:"force_remove_source_branch"`
	} `json:"merge_params"`
	MergeStatus               string      `json:"merge_status"`
	MergeUserId               interface{} `json:"merge_user_id"`
	MergeWhenPipelineSucceeds bool        `json:"merge_when_pipeline_succeeds"`
	MilestoneId               interface{} `json:"milestone_id"`
	SourceBranch              string      `json:"source_branch"` // 来源分支
	SourceProjectId           int         `json:"source_project_id"`
	StateId                   int         `json:"state_id"`
	TargetBranch              string      `json:"target_branch"` // 目标分支
	TargetProjectId           int         `json:"target_project_id"`
	TimeEstimate              int         `json:"time_estimate"`
	Title                     string      `json:"title"`
	UpdatedAt                 string      `json:"updated_at"`
	UpdatedById               interface{} `json:"updated_by_id"`
	Url                       string      `json:"url"`
	Source                    struct {
		Id                int         `json:"id"`
		Name              string      `json:"name"`
		Description       string      `json:"description"`
		WebUrl            string      `json:"web_url"`
		AvatarUrl         interface{} `json:"avatar_url"`
		GitSshUrl         string      `json:"git_ssh_url"`
		GitHttpUrl        string      `json:"git_http_url"`
		Namespace         string      `json:"namespace"`
		VisibilityLevel   int         `json:"visibility_level"`
		PathWithNamespace string      `json:"path_with_namespace"`
		DefaultBranch     string      `json:"default_branch"`
		CiConfigPath      string      `json:"ci_config_path"`
		Homepage          string      `json:"homepage"`
		Url               string      `json:"url"`
		SshUrl            string      `json:"ssh_url"`
		HttpUrl           string      `json:"http_url"`
	} `json:"source"`
	Target struct {
		Id                int         `json:"id"`
		Name              string      `json:"name"`
		Description       string      `json:"description"`
		WebUrl            string      `json:"web_url"`
		AvatarUrl         interface{} `json:"avatar_url"`
		GitSshUrl         string      `json:"git_ssh_url"`
		GitHttpUrl        string      `json:"git_http_url"`
		Namespace         string      `json:"namespace"`
		VisibilityLevel   int         `json:"visibility_level"`
		PathWithNamespace string      `json:"path_with_namespace"`
		DefaultBranch     string      `json:"default_branch"`
		CiConfigPath      string      `json:"ci_config_path"`
		Homepage          string      `json:"homepage"`
		Url               string      `json:"url"`
		SshUrl            string      `json:"ssh_url"`
		HttpUrl           string      `json:"http_url"`
	} `json:"target"`
	LastCommit struct {
		Id        string    `json:"id"`
		Message   string    `json:"message"`
		Title     string    `json:"title"`
		Timestamp time.Time `json:"timestamp"`
		Url       string    `json:"url"`
		Author    struct {
			Name  string `json:"name"`
			Email string `json:"email"`
		} `json:"author"`
	} `json:"last_commit"`
	WorkInProgress      bool          `json:"work_in_progress"`
	TotalTimeSpent      int           `json:"total_time_spent"`
	HumanTotalTimeSpent interface{}   `json:"human_total_time_spent"`
	HumanTimeEstimate   interface{}   `json:"human_time_estimate"`
	AssigneeIds         []interface{} `json:"assignee_ids"`
	State               string        `json:"state"`
	Action              string        `json:"action"`
}

ObjectAttributes mg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL