-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from dojo90/4-add-netcoreapp-3.1
4 add netcoreapp 3.1
- Loading branch information
Showing
6 changed files
with
29 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,31 @@ | ||
param([string]$IssueName) | ||
|
||
$branchName = $IssueName.ToLower().Replace('/', '-').Replace(' ', '-') | ||
$branchName = $IssueName | ||
|
||
########################################################### | ||
# clean input string # | ||
########################################################### | ||
|
||
# character replacement | ||
$rWhiteSpace = [regex]'[ ]{1,}' | ||
$rSlash = [regex]'[/]{1,}' | ||
$rBackSlash = [regex]'[\\]{1,}' | ||
$rSeperator = [regex]'[-]{2,}' | ||
|
||
$branchName = $rWhiteSpace.Replace($branchName, "-") | ||
$branchName = $rSlash.Replace($branchName, "-") | ||
$branchName = $rBackSlash.Replace($branchName, "-") | ||
$branchName = $rSeperator.Replace($branchName, "-") | ||
$branchName = $branchName.Trim('-') | ||
|
||
# limit bracnhname to 40 characters length | ||
$branchName = $branchName.Substring('0', '40') | ||
|
||
echo "New branch '$branchName' created" | ||
|
||
git checkout -b $branchName | ||
git add . | ||
git add -u | ||
|
||
#git commit -m "Description of my changes for issue $IssueName" | ||
#git push -u origin $branchName |
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
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
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
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
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