Skip to content

Commit

Permalink
update shell again
Browse files Browse the repository at this point in the history
  • Loading branch information
belav committed Jul 1, 2023
1 parent 3c8f924 commit c80bab8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Shell/ReviewBranch.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@ function CSH-ReviewBranch {
if ($firstRun)
{
Set-Location $repositoryRoot
# TODO this should make sure the working tree is clean
& git checkout main
$checkoutMainOutput = (git checkout main) | Out-String
if (-not $checkoutMainOutput.Contains("Your branch is up to date with ")) {
return
}

CSH-BuildProject

Set-Location $pathToTestingRepo
Expand Down Expand Up @@ -99,7 +102,7 @@ function CSH-ReviewBranch {

if ($firstRun) {
#uses https://github.com/github/hub/releases
$newPr = & hub pull-request -b belav:$preBranch -m "Testing $branch"
$newPr = & hub pull-request -b belav:$preBranch -m "Testing $branch $folder"
Write-Output $newPr
}

Expand Down

0 comments on commit c80bab8

Please sign in to comment.