Skip to content

Commit

Permalink
temp-fix: remove remote PR check
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby committed Oct 25, 2024
1 parent c0fd281 commit 4f978ad
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/subcommands/remote/submit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl SubmitCmd {

// Perform pre-flight checks.
println!("🔍 Checking for closed pull requests...");
self.pre_flight(&gh_client, &mut ctx, &stack, &mut pulls)
self.pre_flight(&mut ctx, &stack, &mut pulls)
.await?;

// Submit the stack.
Expand All @@ -57,19 +57,13 @@ impl SubmitCmd {
/// Performs pre-flight checks before submitting the stack.
async fn pre_flight(
&self,
gh_client: &Octocrab,
ctx: &mut StContext<'_>,
stack: &[String],
pulls: &mut PullRequestHandler<'_>,
) -> StResult<()> {
// Return early if the stack is not restacked or the current working tree is dirty.
ctx.check_cleanliness(stack)?;

// Check if the current branch has an open PR.
if let Some((c, p)) = ctx.get_open_pr(gh_client).await? {
return Err(StError::PullRequestAlreadyOpen(c, p));
}

// Check if any PRs have been closed, and offer to delete them before starting the submission process.
let num_closed = ctx
.delete_closed_branches(
Expand Down

0 comments on commit 4f978ad

Please sign in to comment.