WL-0MM8LWWCD014HTGU: Add assignGithubIssue helper for delegate command#782
Merged
rgardler-msft merged 1 commit intomainfrom Mar 2, 2026
Merged
Conversation
… helpers
Add new exported functions to src/github.ts that wrap
`gh issue edit --add-assignee` with the existing retry/backoff
infrastructure:
- assignGithubIssueAsync: async variant with rate-limit retry/backoff
(configurable retries, default 3). Returns { ok, error? } without
throwing on failure.
- assignGithubIssue: sync variant using runGhDetailed. Returns
{ ok, error? } without throwing on failure.
- AssignGithubIssueResult interface exported for consumers.
Includes 11 unit tests covering success, failure, retry on rate-limit/403,
max retry exhaustion, and command construction verification.
This was referenced Mar 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
assignGithubIssueAsync(async with rate-limit retry/backoff) andassignGithubIssue(sync variant) helper functions tosrc/github.tsthat wrapgh issue edit <number> --add-assignee <user>tests/github-assign-issue.test.ts) with 11 tests covering success, failure, retry on rate-limit/403, max retry exhaustion, and command constructionwl github delegatecommand (WL-0MKYOAM4Q10TGWND)Changes
src/github.ts: AddedAssignGithubIssueResultinterface,assignGithubIssueAsync(), andassignGithubIssue()functionstests/github-assign-issue.test.ts: New test file with 11 unit tests using mockedchild_process.spawnandchild_process.execSyncTesting
All 11 new tests pass. Full test suite (1159 tests across 91 files) passes with no regressions.
Work Item
Part of: Delegate to GitHub Coding Agent (WL-0MKYOAM4Q10TGWND)