Skip to main content
GET
Get a pull request's impacted targets

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer <key>. An organization admin creates one in the Trunk app under Settings → Developer → API Keys and chooses the permissions it holds. A key with none can read merge queues but change nothing in them. Permissions cover merge queues and test-result uploads, including the quarantine lookups a CI run makes before it uploads; any key can call the other Flaky Tests and Dynamic CI endpoints, including their writes.

Path Parameters

id
string<uuid>
required

The pull request's id.

Example:

"0f8fad5b-d9cb-469f-a165-70867728950e"

Response

The pull request's impacted targets

The impacted targets most recently uploaded for a pull request's head commit (PUT /impacted-targets): a set of one commit.

sha
string
required

The pull request's head commit, which is the commit the targets were uploaded for. A squash merge does not move it.

Example:

"9c58bf40e5c1a2b3d4e5f60718293a4b5c6d7e8f"

impactsAllTargets
boolean
required

True when any commit in this set uploaded impactsAllTargets: true, which makes the explicit lists of the others moot.

Example:

false

impactedTargets
string[]
required

The union of the commits' uploaded targets, sorted and deduplicated. Empty when impactsAllTargets is true, and also when every upload was an explicit empty list — the commits impact nothing. Truncated to the first 100,000 targets; totalImpactedTargets says whether it was.

Maximum array length: 100000
Example:
totalImpactedTargets
integer
required

The size of the union before truncation. 0 when impactsAllTargets is true.

Example:

2