Commit 42565bf1 authored by starblind's avatar starblind Committed by Sander van Harmelen

Add merged_by and merged_at fields to MergeRequest (#372)

* Support merged_by and merged_at for merge requests

* add support for a couple of fields on the MergeRequest: `merged_by` and `merged_at`

* format file using gofmt
parent b7075759
...@@ -68,16 +68,24 @@ type MergeRequest struct { ...@@ -68,16 +68,24 @@ type MergeRequest struct {
Milestone *Milestone `json:"milestone"` Milestone *Milestone `json:"milestone"`
MergeWhenPipelineSucceeds bool `json:"merge_when_pipeline_succeeds"` MergeWhenPipelineSucceeds bool `json:"merge_when_pipeline_succeeds"`
MergeStatus string `json:"merge_status"` MergeStatus string `json:"merge_status"`
Subscribed bool `json:"subscribed"` MergedBy struct {
SHA string `json:"sha"` ID int `json:"id"`
MergeCommitSHA string `json:"merge_commit_sha"` Username string `json:"username"`
UserNotesCount int `json:"user_notes_count"` Name string `json:"name"`
ChangesCount string `json:"changes_count"` State string `json:"state"`
ShouldRemoveSourceBranch bool `json:"should_remove_source_branch"` CreatedAt *time.Time `json:"created_at"`
ForceRemoveSourceBranch bool `json:"force_remove_source_branch"` } `json:"merged_by"`
WebURL string `json:"web_url"` MergedAt *time.Time `json:"merged_at"`
DiscussionLocked bool `json:"discussion_locked"` Subscribed bool `json:"subscribed"`
Changes []struct { SHA string `json:"sha"`
MergeCommitSHA string `json:"merge_commit_sha"`
UserNotesCount int `json:"user_notes_count"`
ChangesCount string `json:"changes_count"`
ShouldRemoveSourceBranch bool `json:"should_remove_source_branch"`
ForceRemoveSourceBranch bool `json:"force_remove_source_branch"`
WebURL string `json:"web_url"`
DiscussionLocked bool `json:"discussion_locked"`
Changes []struct {
OldPath string `json:"old_path"` OldPath string `json:"old_path"`
NewPath string `json:"new_path"` NewPath string `json:"new_path"`
AMode string `json:"a_mode"` AMode string `json:"a_mode"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment