Skip to content

feat: Add support for Actions concurrency groups - #4640

Open
ninadsutrave wants to merge 2 commits into
google:masterfrom
ninadsutrave:feat/actions-concurrency-groups
Open

ninadsutrave wants to merge 2 commits into
google:masterfrom
ninadsutrave:feat/actions-concurrency-groups

Conversation

@ninadsutrave

Copy link
Copy Markdown
Contributor

Fixes #4639.

Adds the Actions concurrency groups endpoints:

  • ActionsService.ListConcurrencyGroups - GET /repos/{owner}/{repo}/actions/concurrency_groups
  • ActionsService.GetConcurrencyGroup - GET /repos/{owner}/{repo}/actions/concurrency_groups/{concurrency_group_name}
  • ActionsService.ListWorkflowRunConcurrencyGroups - GET /repos/{owner}/{repo}/actions/runs/{run_id}/concurrency_groups

Used an AI assistant while writing this; I've reviewed and tested all of it.

@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Oct 17, 2026
@codecov

codecov Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.62%. Comparing base (af24e38) to head (51ee948).
⚠️ Report is 1 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gmlewis gmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @ninadsutrave!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.

cc: @stevehipwell - @Not-Dhananjay-Mishra

Comment thread github/actions_concurrency_groups.go Outdated
Comment on lines +27 to +28
RunURL *string `json:"run_url,omitempty"`
RunHTMLURL *string `json:"run_html_url,omitempty"`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    "group_members": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "run_id",
          "run_name",
          "run_url",
          "run_html_url",
          "status"
        ],
Suggested change
RunURL *string `json:"run_url,omitempty"`
RunHTMLURL *string `json:"run_html_url,omitempty"`
RunURL string `json:"run_url"`
RunHTMLURL string `json:"run_html_url"`

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made RunURL and RunHTMLURL required strings in 51ee948, thanks!

Comment thread github/actions_concurrency_groups.go Outdated

// ListConcurrencyGroupsOptions specifies the optional parameters to the
// ActionsService.ListConcurrencyGroups method.
type ListConcurrencyGroupsOptions struct {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use ListCursorOptions instead of ListWorkflowRunConcurrencyGroupsOptions and ListConcurrencyGroupsOptions?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, both list methods use ListCursorOptions now and the two option types are gone (51ee948).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NeedsReview PR is awaiting a review before merging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for Actions concurrency groups

3 participants