Skip to content

Conversation

@krlvi
Copy link
Member

@krlvi krlvi commented Feb 3, 2026

Update PR message docs in skill references
Limit custom PR message to selected branch

Copilot AI review requested due to automatic review settings February 3, 2026 17:18
@vercel
Copy link

vercel bot commented Feb 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
gitbutler-web Ignored Ignored Preview Feb 3, 2026 5:38pm

Request Review

@github-actions github-actions bot added the rust Pull requests that update Rust code label Feb 3, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for non-interactive PR creation by introducing --message (-m) and --file (-F) flags to the but pr new command. These flags allow users to specify PR title and description without requiring editor prompts, making the command suitable for CI/CD and automation scenarios.

Changes:

  • Added --message and --file flags to but pr new command for non-interactive PR message specification
  • Implemented message parsing logic that treats the first line as title and subsequent lines as description
  • Added validation to detect non-interactive environments and require appropriate flags
  • Limited custom PR messages to the selected branch only (dependent branches in stacks use default messages)
  • Updated skill reference documentation to reflect new flags and behavior

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
crates/but/src/args/forge.rs Added message and file arguments with mutual exclusivity constraints for the New subcommand
crates/but/src/lib.rs Implemented file reading, message parsing, non-interactive environment detection, and updated create_pr call signature
crates/but/src/command/legacy/forge/review.rs Added PrMessage struct, parse_pr_message function, updated function signatures to thread message through the call chain, limited custom messages to selected branches, and added comprehensive unit tests
crates/but/skill/references/reference.md Updated documentation with examples of -F and -m flags, non-interactive usage guidance, and stacked branch behavior
crates/but/skill/SKILL.md Added quick reference for -F flag and noted stacked branch behavior

@krlvi krlvi force-pushed the pr-message-noninteractive branch 2 times, most recently from 83411d4 to 6fa7c82 Compare February 3, 2026 17:24
Copilot AI review requested due to automatic review settings February 3, 2026 17:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

@krlvi krlvi force-pushed the pr-message-noninteractive branch from 6fa7c82 to 2313a79 Compare February 3, 2026 17:32
Copilot AI review requested due to automatic review settings February 3, 2026 17:34
@krlvi krlvi force-pushed the pr-message-noninteractive branch from 2313a79 to 0cf2848 Compare February 3, 2026 17:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Update PR message docs in skill references
Limit custom PR message to selected branch
@krlvi krlvi force-pushed the pr-message-noninteractive branch from 0cf2848 to 7811643 Compare February 3, 2026 17:38
@krlvi krlvi enabled auto-merge February 3, 2026 17:44
@krlvi krlvi merged commit 0b47aed into master Feb 3, 2026
25 checks passed
@krlvi krlvi deleted the pr-message-noninteractive branch February 3, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants