Skip to content

resolvePrIdFromArg

resolvePrIdFromArg(contentArg): string | undefined

Defined in: _worktrees/docs-release/gaunt-sloth/packages/review/src/commands/commandUtils.ts:100

Reads a PR id out of the CLI’s first positional argument, which is a PR number in the GitHub flow and arbitrary content otherwise.

The id binds GitHub-only review tools to the PR under review. Without it they fall back to resolving the PR from the checked-out branch, which no CI runner has: the standard checkout actions leave the workspace on a detached HEAD, so the fallback cannot succeed there and the tools degrade to unavailable.

string | undefined

string | undefined