@@ -11,14 +11,14 @@ import (
11
11
"time"
12
12
)
13
13
14
- // PRStateType issue state type
15
- type PRStateType string
14
+ // StateType issue state type
15
+ type StateType string
16
16
17
17
const (
18
- // PRStateOpen pr is opend
19
- PRStateOpen PRStateType = "open"
20
- // PRStateClosed pr is closed
21
- PRStateClosed PRStateType = "closed"
18
+ // StateOpen pr is opend
19
+ StateOpen StateType = "open"
20
+ // StateClosed pr is closed
21
+ StateClosed StateType = "closed"
22
22
)
23
23
24
24
// PullRequestMeta PR info if an issue is a PR
@@ -29,18 +29,18 @@ type PullRequestMeta struct {
29
29
30
30
// Issue an issue to a repository
31
31
type Issue struct {
32
- ID int64 `json:"id"`
33
- Index int64 `json:"number"`
34
- Poster * User `json:"user"`
35
- Title string `json:"title"`
36
- Body string `json:"body"`
37
- Labels []* Label `json:"labels"`
38
- Milestone * Milestone `json:"milestone"`
39
- Assignee * User `json:"assignee"`
40
- State PRStateType `json:"state"`
41
- Comments int `json:"comments"`
42
- Created time.Time `json:"created_at"`
43
- Updated time.Time `json:"updated_at"`
32
+ ID int64 `json:"id"`
33
+ Index int64 `json:"number"`
34
+ Poster * User `json:"user"`
35
+ Title string `json:"title"`
36
+ Body string `json:"body"`
37
+ Labels []* Label `json:"labels"`
38
+ Milestone * Milestone `json:"milestone"`
39
+ Assignee * User `json:"assignee"`
40
+ State StateType `json:"state"`
41
+ Comments int `json:"comments"`
42
+ Created time.Time `json:"created_at"`
43
+ Updated time.Time `json:"updated_at"`
44
44
45
45
PullRequest * PullRequestMeta `json:"pull_request"`
46
46
}
0 commit comments