New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing workflow_id field from workflow run #1556
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1556 +/- ##
=======================================
Coverage 67.92% 67.92%
=======================================
Files 94 94
Lines 8670 8670
=======================================
Hits 5889 5889
Misses 1880 1880
Partials 901 901
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @patrickmarabeas, but one tiny tweak, please, then we will be ready for merging.
github/actions_workflow_runs.go
Outdated
@@ -22,6 +22,7 @@ type WorkflowRun struct { | |||
Event *string `json:"event,omitempty"` | |||
Status *string `json:"status,omitempty"` | |||
Conclusion *string `json:"conclusion,omitempty"` | |||
WorkflowID *int `json:"workflow_id,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's please change this to *int64
.
Whenever we see GitHub use "ID", we've made them 64-bit ints just in case, so I think we should follow the pattern here as well.
Also, you'll see in line 100 below that workflowID
is indeed already an int64
:
func (s *ActionsService) ListWorkflowRunsByID(ctx context.Context, owner, repo string, workflowID int64, opts *ListWorkflowRunsOptions) (*WorkflowRuns, *Response, error) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @patrickmarabeas !
LGTM.
Merging.
Adds the missing
workflow_id
field from workflow runs endpoint.See docs: https://developer.github.com/v3/actions/workflow-runs