Skip to content

Phase 0: Harden plugin/lib/gh.sh with tests #4

Description

@ericmmartin

Goal

Minimal gh CLI wrappers for the operations skills need: claim, status update, comment, label, body fetch.

Acceptance criteria

  • packages/plugin/lib/gh.sh exposes: gh_issue_status, gh_claim_issue, gh_set_status, gh_add_label, gh_remove_label, gh_post_comment, gh_issue_body, gh_issue_title
  • Atomic claim: gh_claim_issue only succeeds if the issue is currently Ready; concurrent claims fail cleanly with non-zero exit
  • All functions tolerate non-existent issues and surface a clear error message
  • Bats test file with mocked gh for the happy paths and the failure paths

Notes

The Phase 0 spike already has a working draft. This issue is to test it, harden the error handling, and add the missing functions for Phase 1 (PR creation, etc., come in #5 not here).

Dependencies: #1

semver: patch

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    conductor:readyConductor state: ready to pick up

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions