-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update Deploy.ps1 #10
Conversation
@@ -10,17 +10,17 @@ | |||
|
|||
Import-Module (Join-Path $PSScriptRoot "..\Actions\Github-Helper.psm1" -Resolve) -DisableNameChecking | |||
|
|||
$errorActionPreference = "Stop"; $ProgressPreference = "SilentlyContinue"; Set-StrictMode -Version 2.0 | |||
$errorActionPreference = "Stop"; $ProgressPreference = "SilentlyContinue"; Set-StrictMode -Version 2.0 |
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
|
||
function PushChanges | ||
function PushChanges |
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
( | ||
[Parameter(HelpMessage = "The branch Al-Go is being deployed to (e.g. main / v.3.2)", Mandatory = $false)] | ||
[string] $BaseBranch, | ||
[Parameter(HelpMessage = "The message on the commit or PR that contains the latest changes", Mandatory = $false)] | ||
[string] $CommitMessage, | ||
[Parameter(HelpMessage = "If true, the commit will be pushed directly to the base branch. If false, a pull request will be created", Mandatory = $false)] | ||
[bool] $DirectCommit | ||
) | ||
) |
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
@@ -31,7 +31,7 @@ | |||
} else { | |||
# Create PR to base branch | |||
if (-not (git ls-remote --heads origin $BaseBranch)) { | |||
Write-Host "Branch $BaseBranch does not exist in origin. Creating it" | |||
Write-Host "Branch $BaseBranch does not exist in origin. Creating it" |
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
Fixes #7