Skip to content

Commit 1e49128

Browse files
authored
Release v2.11
Merge pull request #359 from lipkau/release/v2.11
2 parents 3c86746 + 7a7d519 commit 1e49128

File tree

6 files changed

+22
-10
lines changed

6 files changed

+22
-10
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
## [NEXT VERSION] - YYYY-MM-DD
44

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+
516
## [2.10] - 2019-02-21
617

718
### Added
@@ -327,6 +338,7 @@ which is in turn inspired by the [Vagrant](https://github.com/mitchellh/vagrant/
327338
[@lipkau]: https://github.com/lipkau
328339
[@lukhase]: https://github.com/lukhase
329340
[@michalporeba]: https://github.com/michalporeba
341+
[@mirrorgleam]: https://github.com/mirrorgleam
330342
[@nojp]: https://github.com/nojp
331343
[@padgers]: https://github.com/padgers
332344
[@ThePSAdmin]: https://github.com/ThePSAdmin

JiraPS/JiraPS.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
RootModule = 'JiraPS.psm1'
55

66
# Version number of this module.
7-
ModuleVersion = '2.10'
7+
ModuleVersion = '2.11'
88

99
# Supported PSEditions
1010
# CompatiblePSEditions = @()

JiraPS/Public/Set-JiraIssueLabel.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
# Find the proper object for the Issue
7070
$issueObj = Resolve-JiraIssueObject -InputObject $_issue -Credential $Credential
7171

72-
$labels = [System.Collections.ArrayList]@($issueObj.labels)
72+
$labels = [System.Collections.ArrayList]@($issueObj.labels | Where-Object {$_})
7373

7474
# As of JIRA 6.4, the Add and Remove verbs in the REST API for
7575
# updating issues do not support arrays of parameters - you
@@ -114,7 +114,7 @@
114114
$parameter = @{
115115
URI = $issueObj.RestURL
116116
Method = "PUT"
117-
Body = ConvertTo-Json -InputObject $requestBody -Depth 4
117+
Body = ConvertTo-Json -InputObject $requestBody -Depth 6
118118
Credential = $Credential
119119
}
120120
Write-Debug "[$($MyInvocation.MyCommand.Name)] Invoking JiraMethod with `$parameter"

Tests/Help.Tests.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ Describe "Help tests" -Tag Documentation {
109109
$help.Synopsis | Should -Not -BeNullOrEmpty
110110
}
111111

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+
112118
# Should be a description for every function
113119
It "has a description" {
114120
$help.Description.Text -join '' | Should -Not -BeNullOrEmpty

Tools/BuildTools.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function Install-Dependency {
6565
$Policy = (Get-PSRepository PSGallery).InstallationPolicy
6666
try {
6767
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
6969
} finally {
7070
Set-PSRepository PSGallery -InstallationPolicy $Policy
7171
}

Tools/setup.ps1

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ if (-not ($gallery = Get-PSRepository -Name PSGallery -ErrorAction SilentlyConti
1010
$null = Install-PackageProvider -Name NuGet -Force -ErrorAction SilentlyContinue
1111
}
1212

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-
1913
# Update PowerShellGet if needed
2014
if ((Get-Module PowershellGet -ListAvailable)[0].Version -lt [version]"1.6.0") {
2115
Write-Host "Updating PowershellGet"

0 commit comments

Comments
 (0)