Skip to content

Clarify missing pull request errors - #88

Merged
itsjling merged 3 commits into
test/issue-83-pr-checkoutfrom
fix/issue-84-pr-errors
Aug 26, 2026
Merged

Clarify missing pull request errors#88
itsjling merged 3 commits into
test/issue-83-pr-checkoutfrom
fix/issue-84-pr-errors

Conversation

@itsjling

Copy link
Copy Markdown
Owner

Closes #84

Treat GitHub's missing pull request response apart from auth failures. Missing pull request errors now name the inferred repo and show both supported ways to choose another repo. Auth failures still point to gh auth status.

Depends on #83.

Verified with corepack pnpm run check.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2ca15071a7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/build-diff-data.mjs Outdated
Comment thread scripts/build-diff-data.mjs Outdated
@itsjling

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 2ca15071a7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@itsjling

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f56c2e4124

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +616 to +619
const prNumber = String(pr).replace(
/^.*\/pull\/(\d+)(?:\/.*)?$/,
"$1",
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Strip URL queries before formatting guidance

For --pr https://github.com/acme/widgets/pull/7?diff=split (or a fragment URL), this anchored regex does not match, so prNumber remains the entire URL and the retry text again produces a malformed /pull/https://... URL. This is fresh evidence beyond the resolved plain-URL case: the public parser accepts these values because it validates URL.pathname, and gh pr view --help supports a <url> argument; GitHub CLI 2.96.0 also parses that queried URL as PR 7. Extract the number from a parsed URL's pathname or allow query and fragment suffixes.

Useful? React with 👍 / 👎.

@itsjling
itsjling merged commit b68d674 into main Aug 26, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed pull-request lookup names the inferred repo

1 participant