MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / GitlabObjectAttributes

Struct GitlabObjectAttributes

controllers/gitlab.go:56–82  ·  view source on GitHub ↗

GitlabObjectAttributes is a object_attribute section in gitlab event event: Issue, Merge Request, Pipeline, Comment, Wiki

Source from the content-addressed store, hash-verified

54// GitlabObjectAttributes is a object_attribute section in gitlab event
55// event: Issue, Merge Request, Pipeline, Comment, Wiki
56type GitlabObjectAttributes struct {
57 // Issue, Merge Request, Wiki
58 Action string `json:"action"`
59 Title string `json:"title"`
60 // Issue, Merge Request
61 State string `json:"state"`
62 Description string `json:"description"`
63 // Issue, Comment, Wiki
64 Url string `json:"url"`
65 // Merge Request
66 TargetBranch string `json:"target_branch"`
67 SourceBranch string `json:"source_branch"`
68 MergeStatus string `json:"merge_status"`
69 // Pipeline
70 Ref string `json:"ref"`
71 Sha string `json:"sha"`
72 Source string `json:"source"`
73 Status string `json:"status"`
74 // Comment
75 Note string `json:"note"`
76 NoteableType string `json:"noteable_type"`
77 // Wiki
78 Message string `json:"message"`
79 // Feature Flag
80 Name string `json:"name"`
81 Active bool `json:"active"`
82}
83
84// GitlabRunner is a runner section in gitlab event
85type GitlabRunner struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected