capabilities.work

Close, reopen or change draft state of a PR

One step with Harness. We can help you get access.

Get something done

Close, reopen or change draft state of a PR

with Harness
Works with AI assistants

Use Harness: its Harness Pullreq API lets you close, reopen or change draft state of a PR in a single step (POST /code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/state). Harness also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • Can I close a pull request without merging it?
  • How do I mark a draft PR as ready for review?
Say it to your AI assistant
  • Close PR #{pullreq_number} in {repo_identifier} without merging.
  • Set the state of pull request {pullreq_number} in repo {repo_identifier} to {state}.
For your developer

POST /code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/state in Harness Pullreq API. Full spec on APIs.io.