Skip to content

Commit

Permalink
Release v2.11
Browse files Browse the repository at this point in the history
Merge pull request #359 from lipkau/release/v2.11
  • Loading branch information
lipkau authored Jul 3, 2019
2 parents 3c86746 + 7a7d519 commit 1e49128
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 10 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

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

## [2.11] - 2019-07-02

### Added

- Unit test for synopsis in cmdlet documentation (#344, [@alexsuslin])

### Changed

- `Invoke-JiraIssueTransition` to find username with exact match (#351, [@mirrorgleam])
- Fixed `-Add <String>` parameter for `Set-JiraIssueLabel` on issues without labels (#358, [@lipkau])

## [2.10] - 2019-02-21

### Added
Expand Down Expand Up @@ -327,6 +338,7 @@ which is in turn inspired by the [Vagrant](https://github.com/mitchellh/vagrant/
[@lipkau]: https://github.com/lipkau
[@lukhase]: https://github.com/lukhase
[@michalporeba]: https://github.com/michalporeba
[@mirrorgleam]: https://github.com/mirrorgleam
[@nojp]: https://github.com/nojp
[@padgers]: https://github.com/padgers
[@ThePSAdmin]: https://github.com/ThePSAdmin
Expand Down
2 changes: 1 addition & 1 deletion JiraPS/JiraPS.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
RootModule = 'JiraPS.psm1'

# Version number of this module.
ModuleVersion = '2.10'
ModuleVersion = '2.11'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
4 changes: 2 additions & 2 deletions JiraPS/Public/Set-JiraIssueLabel.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
# Find the proper object for the Issue
$issueObj = Resolve-JiraIssueObject -InputObject $_issue -Credential $Credential

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

# As of JIRA 6.4, the Add and Remove verbs in the REST API for
# updating issues do not support arrays of parameters - you
Expand Down Expand Up @@ -114,7 +114,7 @@
$parameter = @{
URI = $issueObj.RestURL
Method = "PUT"
Body = ConvertTo-Json -InputObject $requestBody -Depth 4
Body = ConvertTo-Json -InputObject $requestBody -Depth 6
Credential = $Credential
}
Write-Debug "[$($MyInvocation.MyCommand.Name)] Invoking JiraMethod with `$parameter"
Expand Down
6 changes: 6 additions & 0 deletions Tests/Help.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ Describe "Help tests" -Tag Documentation {
$help.Synopsis | Should -Not -BeNullOrEmpty
}

# Should be a syntax for every function
It "has a syntax" {
# syntax is starting with a small case as all the standard powershell commands have syntax with lower case, see (Get-Help Get-ChildItem) | gm
$help.syntax | Should -Not -BeNullOrEmpty
}

# Should be a description for every function
It "has a description" {
$help.Description.Text -join '' | Should -Not -BeNullOrEmpty
Expand Down
2 changes: 1 addition & 1 deletion Tools/BuildTools.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function Install-Dependency {
$Policy = (Get-PSRepository PSGallery).InstallationPolicy
try {
Set-PSRepository PSGallery -InstallationPolicy Trusted
$RequiredModules | Install-Module -Scope $Scope -Repository PSGallery -SkipPublisherCheck -AllowClobber -Verbose
$RequiredModules | Install-Module -Scope $Scope -Repository PSGallery -SkipPublisherCheck -AllowClobber
} finally {
Set-PSRepository PSGallery -InstallationPolicy $Policy
}
Expand Down
6 changes: 0 additions & 6 deletions Tools/setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ if (-not ($gallery = Get-PSRepository -Name PSGallery -ErrorAction SilentlyConti
$null = Install-PackageProvider -Name NuGet -Force -ErrorAction SilentlyContinue
}

# Make PSGallery trusted, to aviod a confirmation in the console
if (-not ($gallery.Trusted)) {
Write-Host "Trusting PSGallery"
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted -ErrorAction SilentlyContinue
}

# Update PowerShellGet if needed
if ((Get-Module PowershellGet -ListAvailable)[0].Version -lt [version]"1.6.0") {
Write-Host "Updating PowershellGet"
Expand Down

0 comments on commit 1e49128

Please sign in to comment.