Skip to content

feat: add acquirable jobs client API - #126

Open
jmagar wants to merge 1 commit into
actions:mainfrom
dinglebear-ai:feat/acquirable-jobs-client-20260821
Open

feat: add acquirable jobs client API#126
jmagar wants to merge 1 commit into
actions:mainfrom
dinglebear-ai:feat/acquirable-jobs-client-20260821

Conversation

@jmagar

@jmagar jmagar commented Aug 21, 2026

Copy link
Copy Markdown

Summary

  • add Client.GetAcquirableJobs(ctx, runnerScaleSetID) for the Actions admin /{scaleSetID}/acquirablejobs endpoint
  • reuse the existing JobAvailable model and admin-token refresh/request path
  • treat HTTP 204 as an empty queue and preserve normal request/response errors

Why

Scale-set controllers sometimes need to inspect currently acquirable jobs before deciding which request IDs to pass to AcquireJobs. The existing client exposes acquisition but not the corresponding admin queue-introspection endpoint, which forces downstream users to duplicate private Actions-service authentication or carry their own HTTP client.

Verification

  • go test ./...
  • go vet ./...
  • golangci-lint run ./... (0 issues)
  • go tool deadcode -test ./... (only the same two pre-existing unreachable helpers)

@jmagar
jmagar requested a review from a team as a code owner August 21, 2026 12:09
Copilot AI lite review requested due to automatic review settings August 21, 2026 12:09

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants