File tree 3 files changed +50
-2
lines changed
3 files changed +50
-2
lines changed Original file line number Diff line number Diff line change @@ -570,7 +570,7 @@ func TestWebhooks(t *testing.T) {
570
570
filename : "../testdata/github/workflow_run.json" ,
571
571
headers : http.Header {
572
572
"X-Github-Event" : []string {"workflow_run" },
573
- "X-Hub-Signature" : []string {"sha1=c54d046b1ce440bc3434c8de5ad73e0a630d7cbe " },
573
+ "X-Hub-Signature" : []string {"sha1=46c14317c062992de64d11e12a0bad91dd9c4f50 " },
574
574
},
575
575
},
576
576
}
Original file line number Diff line number Diff line change @@ -6430,7 +6430,30 @@ type WorkflowRunPayload struct {
6430
6430
CheckSuiteNodeID string `json:"check_suite_node_id"`
6431
6431
URL string `json:"url"`
6432
6432
HTMLURL string `json:"html_url"`
6433
- // PullRequests []interface{} `json:"pull_requests"`
6433
+ PullRequests []struct {
6434
+ ID int64 `json:"id"`
6435
+ Number int64 `json:"number"`
6436
+ URL string `json:"url"`
6437
+ Head struct {
6438
+ Ref string `json:"ref"`
6439
+ Sha string `json:"sha"`
6440
+ URL string `json:"url"`
6441
+ Repo struct {
6442
+ ID int64 `json:"id"`
6443
+ Name string `json:"name"`
6444
+ URL string `json:"url"`
6445
+ } `json:"repo"`
6446
+ } `json:"head"`
6447
+ Base struct {
6448
+ Ref string `json:"ref"`
6449
+ Sha string `json:"sha"`
6450
+ Repo struct {
6451
+ ID int64 `json:"id"`
6452
+ Name string `json:"name"`
6453
+ URL string `json:"url"`
6454
+ } `json:"repo"`
6455
+ } `json:"base"`
6456
+ } `json:"pull_requests"`
6434
6457
CreatedAt time.Time `json:"created_at"`
6435
6458
UpdatedAt time.Time `json:"updated_at"`
6436
6459
RunAttempt int64 `json:"run_attempt"`
Original file line number Diff line number Diff line change 15
15
"check_suite_node_id" : " 1" ,
16
16
"url" : " https://api.github.com/users/baxterthehacker/" ,
17
17
"html_url" : " https://api.github.com/users/baxterthehacker/html_url" ,
18
+ "pull_requests" : [
19
+ {
20
+ "url" : " https://api.github.com/repos/baxterthehacker/public-repo/pulls/43" ,
21
+ "id" : 836659880 ,
22
+ "number" : 43 ,
23
+ "head" : {
24
+ "ref" : " HeadBranch" ,
25
+ "sha" : " d6b80f8411bdc1a44407ff20619a74068b03ea5a" ,
26
+ "repo" : {
27
+ "id" : 434328729 ,
28
+ "url" : " https://api.github.com/repos/baxterthehacker/public-repo" ,
29
+ "name" : " public-repo"
30
+ }
31
+ },
32
+ "base" : {
33
+ "ref" : " master" ,
34
+ "sha" : " 959ab634fb1411f204b2be49b68236808d6b741c" ,
35
+ "repo" : {
36
+ "id" : 434328729 ,
37
+ "url" : " https://api.github.com/repos/baxterthehacker/public-repo" ,
38
+ "name" : " public-repo"
39
+ }
40
+ }
41
+ }
42
+ ],
18
43
"created_at" : " 2015-05-05T23:40:12Z" ,
19
44
"updated_at" : " 2015-05-05T23:40:30Z" ,
20
45
"run_attempt" : 1 ,
You can’t perform that action at this time.
0 commit comments