File tree Expand file tree Collapse file tree 6 files changed +22
-10
lines changed Expand file tree Collapse file tree 6 files changed +22
-10
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## [ NEXT VERSION] - YYYY-MM-DD
4
4
5
+ ## [ 2.11] - 2019-07-02
6
+
7
+ ### Added
8
+
9
+ - Unit test for synopsis in cmdlet documentation (#344 , [ @alexsuslin ] )
10
+
11
+ ### Changed
12
+
13
+ - ` Invoke-JiraIssueTransition ` to find username with exact match (#351 , [ @mirrorgleam ] )
14
+ - Fixed ` -Add <String> ` parameter for ` Set-JiraIssueLabel ` on issues without labels (#358 , [ @lipkau ] )
15
+
5
16
## [ 2.10] - 2019-02-21
6
17
7
18
### Added
@@ -327,6 +338,7 @@ which is in turn inspired by the [Vagrant](https://github.com/mitchellh/vagrant/
327
338
[ @lipkau ] : https://github.com/lipkau
328
339
[ @lukhase ] : https://github.com/lukhase
329
340
[ @michalporeba ] : https://github.com/michalporeba
341
+ [ @mirrorgleam ] : https://github.com/mirrorgleam
330
342
[ @nojp ] : https://github.com/nojp
331
343
[ @padgers ] : https://github.com/padgers
332
344
[ @ThePSAdmin ] : https://github.com/ThePSAdmin
Original file line number Diff line number Diff line change 4
4
RootModule = ' JiraPS.psm1'
5
5
6
6
# Version number of this module.
7
- ModuleVersion = ' 2.10 '
7
+ ModuleVersion = ' 2.11 '
8
8
9
9
# Supported PSEditions
10
10
# CompatiblePSEditions = @()
Original file line number Diff line number Diff line change 69
69
# Find the proper object for the Issue
70
70
$issueObj = Resolve-JiraIssueObject - InputObject $_issue - Credential $Credential
71
71
72
- $labels = [System.Collections.ArrayList ]@ ($issueObj.labels )
72
+ $labels = [System.Collections.ArrayList ]@ ($issueObj.labels | Where-Object { $_ } )
73
73
74
74
# As of JIRA 6.4, the Add and Remove verbs in the REST API for
75
75
# updating issues do not support arrays of parameters - you
114
114
$parameter = @ {
115
115
URI = $issueObj.RestURL
116
116
Method = " PUT"
117
- Body = ConvertTo-Json - InputObject $requestBody - Depth 4
117
+ Body = ConvertTo-Json - InputObject $requestBody - Depth 6
118
118
Credential = $Credential
119
119
}
120
120
Write-Debug " [$ ( $MyInvocation.MyCommand.Name ) ] Invoking JiraMethod with `$ parameter"
Original file line number Diff line number Diff line change @@ -109,6 +109,12 @@ Describe "Help tests" -Tag Documentation {
109
109
$help.Synopsis | Should -Not - BeNullOrEmpty
110
110
}
111
111
112
+ # Should be a syntax for every function
113
+ It " has a syntax" {
114
+ # syntax is starting with a small case as all the standard powershell commands have syntax with lower case, see (Get-Help Get-ChildItem) | gm
115
+ $help.syntax | Should -Not - BeNullOrEmpty
116
+ }
117
+
112
118
# Should be a description for every function
113
119
It " has a description" {
114
120
$help.Description.Text -join ' ' | Should -Not - BeNullOrEmpty
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ function Install-Dependency {
65
65
$Policy = (Get-PSRepository PSGallery).InstallationPolicy
66
66
try {
67
67
Set-PSRepository PSGallery - InstallationPolicy Trusted
68
- $RequiredModules | Install-Module - Scope $Scope - Repository PSGallery - SkipPublisherCheck - AllowClobber - Verbose
68
+ $RequiredModules | Install-Module - Scope $Scope - Repository PSGallery - SkipPublisherCheck - AllowClobber
69
69
} finally {
70
70
Set-PSRepository PSGallery - InstallationPolicy $Policy
71
71
}
Original file line number Diff line number Diff line change @@ -10,12 +10,6 @@ if (-not ($gallery = Get-PSRepository -Name PSGallery -ErrorAction SilentlyConti
10
10
$null = Install-PackageProvider - Name NuGet - Force - ErrorAction SilentlyContinue
11
11
}
12
12
13
- # Make PSGallery trusted, to aviod a confirmation in the console
14
- if (-not ($gallery.Trusted )) {
15
- Write-Host " Trusting PSGallery"
16
- Set-PSRepository - Name " PSGallery" - InstallationPolicy Trusted - ErrorAction SilentlyContinue
17
- }
18
-
19
13
# Update PowerShellGet if needed
20
14
if ((Get-Module PowershellGet - ListAvailable)[0 ].Version -lt [version ]" 1.6.0" ) {
21
15
Write-Host " Updating PowershellGet"
You can’t perform that action at this time.
0 commit comments