Skip to content

Be oh-so-inclusive with the review terminology#12372

Merged
estib-vega merged 1 commit intomasterfrom
inclusive-review-naming
Feb 16, 2026
Merged

Be oh-so-inclusive with the review terminology#12372
estib-vega merged 1 commit intomasterfrom
inclusive-review-naming

Conversation

@estib-vega
Copy link
Contributor

Since we support both PRs and MRs, use the term review instead of PRs.
GitLab butizens have the same rights as we do.

@vercel
Copy link

vercel bot commented Feb 16, 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 16, 2026 3:20pm

Request Review

Copilot AI review requested due to automatic review settings February 16, 2026 15:11
@github-actions github-actions bot added rust Pull requests that update Rust code CLI The command-line program `but` labels Feb 16, 2026
@estib-vega estib-vega enabled auto-merge February 16, 2026 15:11
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 updates the codebase terminology from "PR" (Pull Request) to "review" to be inclusive of both GitHub Pull Requests and GitLab Merge Requests. The changes ensure that users of both platforms are treated equally in the user-facing messages and API.

Changes:

  • Renamed PrMessage type to ForgeReviewMessage and parse_pr_message function to parse_review_message
  • Renamed create_pr function to create_review
  • Updated error messages, user prompts, and documentation to use "review" or "forge review" instead of "PR"

Reviewed changes

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

File Description
crates/but/src/lib.rs Updated function calls and error messages to use "review" terminology instead of "PR"
crates/but/src/command/legacy/forge/review.rs Renamed core types and functions from PR-specific names to review-generic names, updated user-facing messages and authentication error messages to be forge-specific
crates/but/src/args/mod.rs Updated command documentation to clarify support for both PRs and MRs

/// Create a new forge review for a branch.
/// If no branch is specified, prompts the user to select one.
/// If there is only one branch without a PR, asks for confirmation.
/// If there is only one branch without a an acco, asks for confirmation.
Copy link

Copilot AI Feb 16, 2026

Choose a reason for hiding this comment

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

Typo in the comment: "a an acco" appears to be incomplete text. This should likely read "a forge review" or "an associated review" to match the PR's terminology update.

Suggested change
/// If there is only one branch without a an acco, asks for confirmation.
/// If there is only one branch without an associated review, asks for confirmation.

Copilot uses AI. Check for mistakes.
anyhow::bail!("Azure is unsupported at the minute. Sorry 😞.");
}
but_forge::ForgeName::Bitbucket => {
anyhow::bail!("Azure is unsupported at the minute. Sorry 😞.");
Copy link

Copilot AI Feb 16, 2026

Choose a reason for hiding this comment

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

Copy-paste error: The error message says "Azure is unsupported" but this is the Bitbucket branch. It should say "Bitbucket is unsupported at the minute. Sorry 😞."

Suggested change
anyhow::bail!("Azure is unsupported at the minute. Sorry 😞.");
anyhow::bail!("Bitbucket is unsupported at the minute. Sorry 😞.");

Copilot uses AI. Check for mistakes.
@estib-vega estib-vega disabled auto-merge February 16, 2026 15:19
Since we support both PRs and MRs, use the term review instead of PRs.
GitLab butizens have the same rights as we do.
@estib-vega estib-vega force-pushed the inclusive-review-naming branch from cf1d05a to d32e350 Compare February 16, 2026 15:20
@estib-vega estib-vega enabled auto-merge February 16, 2026 15:20
@estib-vega estib-vega merged commit 7c0e2ec into master Feb 16, 2026
28 checks passed
@estib-vega estib-vega deleted the inclusive-review-naming branch February 16, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLI The command-line program `but` rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant