Skip to content

feat(api): 1b — PR action route shell (merge + resolve-comments) #21

Closed

Description

@neversettle17-101

Part of #10 — Go HTTP Daemon lane. Sub-issue of umbrella #18.

⚠️ Scope: Interface-first. Register the two SCM/PR action routes as 200 with a structured planned body. No business logic. No real service impls. Route surface locked to the SCM section of the route analysis.

🔀 Supersedes #22.

Depends on

Route surface (2 routes)

Both carry the different lane verdict — they belong to the SCM poller / webhook layer (feeding ApplySCMObservation), not the session/project REST API. Registered here as shells only.

Method Path Verdict Notes
POST /api/v1/prs/{id}/merge different lane Merge a PR.
POST /api/v1/prs/{id}/resolve-comments different lane Resolve review comments on a PR.

Contract details

POST /api/v1/prs/{id}/merge

  • Request: (none)
  • 200 → { ok: true, prNumber, method: "squash" }
  • 404 → unknown PR
  • 409 → not mergeable
  • 422 → merge preconditions unmet

POST /api/v1/prs/{id}/resolve-comments

  • Request: { commentIds?: string[] } — omit to resolve all
  • 200 → { ok: true, resolved: number }
  • 404 → unknown PR
  • 422 → nothing to resolve

Files

backend/internal/
  httpd/controllers/
    prs.go            NEW
    prs_test.go       NEW

Exit criteria

curl -i -XPOST localhost:3001/api/v1/prs/1/merge              # 200
curl -i -XPOST localhost:3001/api/v1/prs/1/resolve-comments   # 200

Closes part of #18.

Activity

  1. changed the title [-]feat(api): 1b·b — Sessions route shell (9 routes, REST-corrected)[/-] [+]feat(api): 1b·b — Sessions, orchestrators & platform route shell (REST-corrected, merges #22)[/+] on May 31, 2026
  2. changed the title [-]feat(api): 1b·b — Sessions, orchestrators & platform route shell (REST-corrected, merges #22)[/-] [+]feat(api): 1b — PR action route shell (merge + resolve-comments)[/+] on Jun 2, 2026
  3. changed the title [-]feat(api): 1b — PR action route shell (merge + resolve-comments)[/-] [+]feat(api): 1b — PR actions (merge + resolve-comments), full impl[/+] on Jun 2, 2026
  4. changed the title [-]feat(api): 1b — PR actions (merge + resolve-comments), full impl[/-] [+]feat(api): 1b — PR action route shell (merge + resolve-comments)[/+] on Jun 2, 2026
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

    coreCore FunctionalitydaemonHTTP daemon lane

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions