1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- package model
- const (
-
- HookCommentTypeMR = "MergeRequest"
- )
- const (
-
- CommentTypeStandard = iota
-
- CommentTypeMisaka
-
- CommentTypeMmerge
-
- CommentTypeMerge
-
- CommentTypeRider
-
- CommentTypeDeploy
-
- CommentTypeAddOne
- )
- type HookComment struct {
- ObjectKind string `json:"object_kind"`
- User *User `json:"user"`
- ProjectID int64 `json:"project_id"`
- Project *Project `json:"project"`
- Repository *Repository `json:"repository"`
- ObjectAttributes *Comment `json:"object_attributes"`
- MergeRequest *MergeRequest `json:"merge_request"`
- Commit *Commit `json:"commit"`
- }
- type Comment struct {
- ID int64 `json:"id"`
- Note string `json:"note"`
- NoteableType string `json:"noteable_type"`
- AuthorID int64 `json:"author_id"`
- CreatedAt string `json:"created_at"`
- UpdatedAt string `json:"updated_at"`
- ProjectID int64 `json:"project_id"`
- Attachment string `json:"attachment"`
- LineCode string `json:"line_code"`
- CommitID string `json:"commit_id"`
- NoteableID int64 `json:"noteable_id"`
- System bool `json:"system"`
- STDiff string `json:"st_diff"`
- URL string `json:"url"`
- }
|