-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Start Pull Request with AI #4177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
de8b942 to
13c1fa3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heads-up @sergeibbb @eamodio : We do not have a prompt template in the GitKraken provider (from the url ...gitkraken.dev/v1/ai-tasks/templates/message-prompt/generate-pullRequestMessage) so attempting this action with the GitKraken provider will always silently throw and do a regular "create PR" without AI instead (because getPromptTemplate fails).
- prompt is from createCommitMessage - only diff is used (#4177)
(vscode-gitlens-private#43, #4177)
… body (vscode-gitlens-private#43, #4177)
(vscode-gitlens-private#43, #4177)
(vscode-gitlens-private#43, #4177)
(vscode-gitlens-private#43, #4177)
- prompt is from createCommitMessage - only diff is used (vscode-gitlens-private#43, #4177)
(vscode-gitlens-private#43, #4177)
(vscode-gitlens-private#43, #4177)
(vscode-gitlens-private#43, #4177)
(vscode-gitlens-private#43, #4177)
…ined (vscode-gitlens-private#43, #4177)
…ng AI (vscode-gitlens-private#43, #4177)
(vscode-gitlens-private#43, #4177)
(vscode-gitlens-private#43, #4177)
… body (vscode-gitlens-private#43, #4177)
(vscode-gitlens-private#43, #4177)
(vscode-gitlens-private#43, #4177)
(vscode-gitlens-private#43, #4177)
* Fixes GitHub createPR URL so the title does not disappear on redirects (vscode-gitlens-private#43, gitkraken#4177) * Generates PR title and message using AI: - prompt is from createCommitMessage - only diff is used (vscode-gitlens-private#43, gitkraken#4177) * Includes log to generating Pull Request details (vscode-gitlens-private#43, gitkraken#4177) * Uses a new AI prompt for generating Pull Request details (vscode-gitlens-private#43, gitkraken#4177) * Shows one-branch diff for a PR creation by using '...' notation in diff (vscode-gitlens-private#43, gitkraken#4177) * Generates title and body for GitLab merge request using AI (vscode-gitlens-private#43, gitkraken#4177) * Fixes a problem with stringifying undefined branches to `origin/undefined (vscode-gitlens-private#43, gitkraken#4177) * Makes AI usage in create PR optional, adds button that creates PR using AI (vscode-gitlens-private#43, gitkraken#4177) * Styles the "Create PR with AI" button (vscode-gitlens-private#43, gitkraken#4177) * Mentions AI assisted PR creation in the changelog (vscode-gitlens-private#43, gitkraken#4177) * Hides AI PR creation button for repos that we cannot preset title and body (vscode-gitlens-private#43, gitkraken#4177) * Requires AI feature access to generate a Pull Request with AI (vscode-gitlens-private#43, gitkraken#4177) * Adds "(Preview)" suffix to labels of Create Pull Request with AI feature (vscode-gitlens-private#43, gitkraken#4177) * Adds a new prop for specific custom instructions for create PR with AI (vscode-gitlens-private#43, gitkraken#4177) * Fixes prompt/action name and settings * Updates button label --------- Co-authored-by: Eric Amodio <[email protected]> Co-authored-by: Ramin Tadayon <[email protected]>
Description
solves gitkraken/vscode-gitlens-private#43
Checklist
Fixes $XXX -orCloses #XXX -prefix to auto-close the issue that your PR addresses