Content

Open a draft pull request for a post

Changed on

Exports a saved blog post or changelog to a draft GitHub pull request, using the repository's configured content path, site metadata and image handling, the same as the dashboard. Always opens a pull request, even for repositories set to publish directly, and never merges it. Calling it again for the same post and repository updates its open pull request instead of opening another.

post/v1/posts/{postId}/pull-request

Request

Path parameters

postIdstring required
Example:post_123

Request body

integrationIdstring

GitHub integration ID from GET /v1/integrations to open the pull request in.

Example request

{
  "integrationId": "integration_1",
  "github": {
    "owner": "usenotra",
    "repo": "notra"
  }
}

Response

Draft pull request opened or updated

Changes