Content
Open a draft pull request for a post
Changed onExports 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
- Base URLhttps://api.usenotra.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
postIdstring required
Example:post_123
Request body
Example request
{
"integrationId": "integration_1",
"github": {
"owner": "usenotra",
"repo": "notra"
}
}Response
Draft pull request opened or updated
Changes
- info
endpoint added
- info