Skip to navigation

Link a pull request

Links a pull request opened outside Pensar so the issue tracks its merge and close.

Requires the issues:write API key scope.

Authentication

AuthorizationBearer

A workspace API key, sent as Authorization: Bearer.

OR
x-api-keystring

A workspace API key, sent as x-api-key.

Path parameters

issueIdstringRequired

Issue UUID or label, e.g. VULN-000123.

Request

This endpoint expects an object.
urlstringRequired

HTTP(S) URL of the pull request.

Response

It was already linked.
successboolean
createdboolean
False when the pull request was already linked.
pullRequestobject
issueobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error