Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Update Deploy.ps1 #10

wants to merge 2 commits into from

Conversation

aholstrup1
Copy link

@aholstrup1 aholstrup1 commented Sep 13, 2023

Fixes #7

@@ -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

Line has trailing whitespace

function PushChanges
function PushChanges

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
(
[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

Line has trailing whitespace
@@ -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

Line has trailing whitespace
@mazhelez mazhelez closed this Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants