Skip to content

Commit

Permalink
Support path property in WorkflowRun (#3176)
Browse files Browse the repository at this point in the history
Fixes: #3175.
  • Loading branch information
rmacklin committed May 23, 2024
1 parent 8c1232a commit 7665f31
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions github/actions_workflow_runs.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type WorkflowRun struct {
NodeID *string `json:"node_id,omitempty"`
HeadBranch *string `json:"head_branch,omitempty"`
HeadSHA *string `json:"head_sha,omitempty"`
Path *string `json:"path,omitempty"`
RunNumber *int `json:"run_number,omitempty"`
RunAttempt *int `json:"run_attempt,omitempty"`
Event *string `json:"event,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions github/actions_workflow_runs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ func TestWorkflowRun_Marshal(t *testing.T) {
NodeID: String("nid"),
HeadBranch: String("hb"),
HeadSHA: String("hs"),
Path: String("p"),
RunNumber: Int(1),
RunAttempt: Int(1),
Event: String("e"),
Expand Down Expand Up @@ -776,6 +777,7 @@ func TestWorkflowRun_Marshal(t *testing.T) {
"node_id": "nid",
"head_branch": "hb",
"head_sha": "hs",
"path": "p",
"run_number": 1,
"run_attempt": 1,
"event": "e",
Expand Down
8 changes: 8 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7665f31

Please sign in to comment.