Skip to content

Commit 7665f31

Browse files
authored
Support path property in WorkflowRun (#3176)
Fixes: #3175.
1 parent 8c1232a commit 7665f31

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

github/actions_workflow_runs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ type WorkflowRun struct {
1919
NodeID *string `json:"node_id,omitempty"`
2020
HeadBranch *string `json:"head_branch,omitempty"`
2121
HeadSHA *string `json:"head_sha,omitempty"`
22+
Path *string `json:"path,omitempty"`
2223
RunNumber *int `json:"run_number,omitempty"`
2324
RunAttempt *int `json:"run_attempt,omitempty"`
2425
Event *string `json:"event,omitempty"`

github/actions_workflow_runs_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ func TestWorkflowRun_Marshal(t *testing.T) {
648648
NodeID: String("nid"),
649649
HeadBranch: String("hb"),
650650
HeadSHA: String("hs"),
651+
Path: String("p"),
651652
RunNumber: Int(1),
652653
RunAttempt: Int(1),
653654
Event: String("e"),
@@ -776,6 +777,7 @@ func TestWorkflowRun_Marshal(t *testing.T) {
776777
"node_id": "nid",
777778
"head_branch": "hb",
778779
"head_sha": "hs",
780+
"path": "p",
779781
"run_number": 1,
780782
"run_attempt": 1,
781783
"event": "e",

github/github-accessors.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)