Skip to content

Chore: Github PR related feature can extract URL from region as default PR/issue URL input#327

Merged
tninja merged 1 commit intomainfrom
kang_feat_11
May 1, 2026
Merged

Chore: Github PR related feature can extract URL from region as default PR/issue URL input#327
tninja merged 1 commit intomainfrom
kang_feat_11

Conversation

@tninja
Copy link
Copy Markdown
Owner

@tninja tninja commented May 1, 2026

No description provided.

Copy link
Copy Markdown

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

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: 7d1c9c2ae1

ℹ️ 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 ai-code-git.el
review-source current-branch target-branch pr-title)))
(let* ((url-prompt (ai-code--pull-or-review-url-prompt review-mode))
(target-url (ai-code-read-string url-prompt)))
(region-url (ai-code--extract-url-from-region))
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 Capture region URL before prompting for review options

Compute the region URL before entering the minibuffer prompts; as written, ai-code--extract-url-from-region runs only after ai-code-pull-or-review-diff-file has already asked for review source and mode, and those interactive reads typically clear the active region, so use-region-p is nil and the URL default is not populated. In the common C-c a v flow (select URL in buffer, then choose source/mode), this makes the new feature effectively not work.

Useful? React with 👍 / 👎.

@tninja tninja merged commit f3abe87 into main May 1, 2026
2 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.

1 participant