Skip to content

Commit

Permalink
⚙ Add psm1, psd1 file
Browse files Browse the repository at this point in the history
  • Loading branch information
michielthai committed Nov 20, 2019
1 parent cd1e997 commit e134e7a
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
Binary file added PSGitChangeLog/PSGitChangeLog.psd1
Binary file not shown.
24 changes: 24 additions & 0 deletions PSGitChangeLog/PSGitChangeLog.psm1
@@ -0,0 +1,24 @@
$ModuleRoot = $PSScriptRoot
$files = Get-ChildItem $ModuleRoot\* -Include '*.Tools.ps1' -Recurse

$files | ForEach-Object { . $_.Fullname }


$ver = (Import-PowerShellDataFile $(Resolve-Path "$PSScriptRoot\*.psd1")).ModuleVersion

Write-Host "
_____ _____ _____ _____ _______ _____ _ _
| __ \ / ____|/ ____|_ _|__ __/ ____| | | |
| |__) | (___ | | __ | | | | | | | |__ __ _ _ __ __ _ ___| | ___ __ _
| ___/ \___ \| | |_ | | | | | | | | '_ \ / _` | '_ \ / _` |/ _ \ |/ _ \ / _` |
| | ____) | |__| |_| |_ | | | |____| | | | (_| | | | | (_| | __/ | (_) | (_| |
|_| |_____/ \_____|_____| |_| \_____|_| |_|\__,_|_| |_|\__, |\___|_|\___/ \__, |
__/ | __/ |
|___/ |___/
v$ver
======================================================================================
"


2 changes: 1 addition & 1 deletion PSGitChangeLog/Public/Get-GitHistory.Tools.ps1
@@ -1,4 +1,4 @@
Function Get-GitHistory {
Function Get-GitHistory {
<#
.SYNOPSIS
Converts gitlog output into structured format
Expand Down
16 changes: 16 additions & 0 deletions PSGitChangeLog/Public/Test-JiraIssueKey.Tools.ps1
@@ -0,0 +1,16 @@
Function Test-JiraIssueKey {
<#
.SYNOPSIS
Parses a string to detect JIRA issue keys and returns the key
.EXAMPLE
Test-JiraIssueKey('safdsf BISS-123 asdfasdf')
Test-JiraIssueKey('safdsf BISS123 asdfasdf')
#>
Param (
$String
)

If ($string -match '((?<!([A-Za-z]{1,10})-?)[A-Z]+-\d+)') {
Return $matches.GetEnumerator() | Select-Object -ExpandProperty Value -Unique
}
}

0 comments on commit e134e7a

Please sign in to comment.