@@ -38,44 +38,8 @@ type EditIssueCommentOption struct {
3838
3939// TimelineComment represents a timeline comment (comment of any type) on a commit or issue
4040type TimelineComment struct {
41- ID int64 `json:"id"`
42-
43- // Type specifies the type of an event.
44- // 0 Plain comment, can be associated with a commit (CommitID > 0) and a line (LineNum > 0)
45- // 1 Reopen issue/pull request
46- // 2 Close issue/pull request
47- // 3 References.
48- // 4 Reference from a commit (not part of a pull request)
49- // 5 Reference from a comment
50- // 6 Reference from a pull request
51- // 7 Labels changed (if Body is "1", label was added, if not it was removed)
52- // 8 Milestone changed
53- // 9 Assignees changed
54- // 10 Change Title
55- // 11 Delete Branch
56- // 12 Start a stopwatch for time tracking
57- // 13 Stop a stopwatch for time tracking
58- // 14 Add time manual for time tracking
59- // 15 Cancel a stopwatch for time tracking
60- // 16 Added a due date
61- // 17 Modified the due date
62- // 18 Removed a due date
63- // 19 Dependency added
64- // 20 Dependency removed
65- // 21 Not returned; use review API to get more information
66- // 22 Reviews a pull request by giving general feedback; use review API to get more information
67- // 23 Lock an issue, giving only collaborators access
68- // 24 Unlocks a previously locked issue
69- // 25 Change pull request's target branch
70- // 26 Delete time manual for time tracking
71- // 27 add or remove Request from one
72- // 28 merge pull request
73- // 29 push to PR head branch (information about the push is included in Body)
74- // 30 Project changed
75- // 31 Project board changed
76- // 32 Dismiss Review
77- // 33 Change issue ref
78- Type int64 `json:"type"`
41+ ID int64 `json:"id"`
42+ Type string `json:"type"`
7943
8044 HTMLURL string `json:"html_url"`
8145 PRURL string `json:"pull_request_url"`
@@ -99,12 +63,7 @@ type TimelineComment struct {
9963
10064 RefIssue * Issue `json:"ref_issue"`
10165 RefComment * Comment `json:"ref_comment"`
102- // action that was used to reference issue/PR
103- // 0 means the cross-reference is simply a comment
104- // 1 means the cross-reference should close an issue if it is resolved
105- // 2 means the cross-reference should reopen an issue if it is resolved
106- // 3 means the cross-reference will no longer affect the source
107- RefAction int64 `json:"ref_action"`
66+ RefAction string `json:"ref_action"`
10867 // commit SHA where issue/PR was referenced
10968 RefCommitSHA string `json:"ref_commit_sha"`
11069
0 commit comments