Get a trail by number (repo_id addressing)
Accepted credentials: User token, Plugin installation token.
A single trail by number, addressed by opaque repo id. Same fields and composition boundary as the wire-parity path.
Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here.
Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. Trails must be enabled. Send requests to the repository’s primary API region.
Path Parameters
Query Parameters
Response
OK
Current code evidence: present means commits ahead of base, none means a confirmed zero or an indexed base tip equal to the displayed head when comparison is unavailable, unknown means no usable evidence for a Change that tracks a branch. not_applicable means no live comparison exists (merged, closed or unlinked); terminal history uses frozen snapshot refs.
present, none, unknown, not_applicable Branch a merged Change landed on, as its merge recorded it, without refs/heads/. Merged through Entire, a stacked Change names its stack's base, not its own base; merged on GitHub, it names the base GitHub reported for the pull request. Omitted when the Change is not merged or its merge recorded no destination, as for merges that predate the record.