-
Notifications
You must be signed in to change notification settings - Fork 0
/
servicehookworkitems.go
31 lines (27 loc) · 1.21 KB
/
servicehookworkitems.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package azuredevops
import (
"time"
)
// ServiceHookResourceWorkItems holds fields related to the Service Hook resource for Work Item events
type ServiceHookResourceWorkItems struct {
Rev *int `json:"rev"`
// workitem.updated is a map[string]struct{oldValue string, newValue string}
// Every other work item is a map[string]string
//Fields map[string]string `json:"fields"`
Fields map[string]interface{} `json:"fields"`
}
// ServiceHookResourceWorkItemsUpdated holds fields related to the Service Hook resource for the workitem.updated
type ServiceHookResourceWorkItemsUpdated struct {
WorkItemID *int `json:"workItemId"`
RevisedBy *User `json:"revisedBy"`
RevisedDate *time.Time `json:"revisedDate"`
Revision *ServiceHookResourceWorkItemsUpdatedRevision `json:"revision"`
}
// ServiceHookResourceWorkItemsUpdatedRevision holds revision info for a Work Item
type ServiceHookResourceWorkItemsUpdatedRevision struct {
//ServiceHookResourceWorkItems
Rev *int `json:"rev"`
Fields map[string]string `json:"fields"`
ID int `json:"id"`
URL string `json:"url"`
}