This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module PSSlack | |
$checkoutPath = 'C:\Temp' | |
$repoUri = 'https://github.com/githubtraining/hellogitworld.git' | |
$repoFolder = 'hellogitworld' | |
$branchMatch = '*' | |
$defaultBranch = 'master' | |
$pushChanges = $false | |
$success = ":check2:" | |
$failed = ":x-cross:" | |
$mergeText = "*Merge Successful*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module PSSlack | |
$success = ":check2:" | |
$failed = ":x-cross:" | |
$mergeText = "*Merge Successful*" | |
$conflictsText = "*Found Conflicts*" | |
$slackApiKey = '12345' | |
$slackChannel = '#testchannel' | |
$branchMatch = "feature/*" | |
$resultList = @{ | |
"feature/brancha" = $success |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$repoPath = "C:\Temp\hellogitworld" | |
Push-Location | |
Set-Location $repoPath | |
$branchMatch = '*' | |
$defaultBranch = 'master' | |
$pushChanges = $false | |
$resultList = @{} | |
$branches = git for-each-ref --format='%(refname:short)' refs/remotes/origin | |
foreach($branch in $branches){ | |
$branchName = $branch.Substring(7, $branch.Length - 7) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$repoUri = "https://github.com/githubtraining/hellogitworld" | |
$repoFolder = "hellogitworld" | |
$checkoutPath = "C:\Temp" | |
Push-Location | |
if(!(Test-Path -Path $checkoutPath)){ | |
New-Item -ItemType directory -Path $checkoutPath | |
} | |
Set-Location $checkoutPath | |
if(!(Test-Path -Path “$checkoutPath\$repoFolder”)){ | |
Write-Host(“Cloning $repoUri into $checkoutPath\$repoFolder”) |