Repository navigation
feat: Add support for Actions concurrency groups - #4640
ninadsutrave wants to merge 2 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4640 +/- ##
=======================================
Coverage 98.61% 98.62%
=======================================
Files 199 200 +1
Lines 18689 18766 +77
=======================================
+ Hits 18431 18508 +77
Misses 258 258 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
gmlewis
left a comment
There was a problem hiding this comment.
Thank you, @ninadsutrave!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
| RunURL *string `json:"run_url,omitempty"` | ||
| RunHTMLURL *string `json:"run_html_url,omitempty"` |
There was a problem hiding this comment.
"group_members": {
"type": "array",
"items": {
"type": "object",
"required": [
"run_id",
"run_name",
"run_url",
"run_html_url",
"status"
],| RunURL *string `json:"run_url,omitempty"` | |
| RunHTMLURL *string `json:"run_html_url,omitempty"` | |
| RunURL string `json:"run_url"` | |
| RunHTMLURL string `json:"run_html_url"` |
There was a problem hiding this comment.
Made RunURL and RunHTMLURL required strings in 51ee948, thanks!
|
|
||
| // ListConcurrencyGroupsOptions specifies the optional parameters to the | ||
| // ActionsService.ListConcurrencyGroups method. | ||
| type ListConcurrencyGroupsOptions struct { |
There was a problem hiding this comment.
Can we use ListCursorOptions instead of ListWorkflowRunConcurrencyGroupsOptions and ListConcurrencyGroupsOptions?
There was a problem hiding this comment.
Good idea, both list methods use ListCursorOptions now and the two option types are gone (51ee948).
Fixes #4639.
Adds the Actions concurrency groups endpoints:
ActionsService.ListConcurrencyGroups-GET /repos/{owner}/{repo}/actions/concurrency_groupsActionsService.GetConcurrencyGroup-GET /repos/{owner}/{repo}/actions/concurrency_groups/{concurrency_group_name}ActionsService.ListWorkflowRunConcurrencyGroups-GET /repos/{owner}/{repo}/actions/runs/{run_id}/concurrency_groupsUsed an AI assistant while writing this; I've reviewed and tested all of it.