Skip to content

Commit db5d33e

Browse files
Enhancing CHANGELOG for 0.15.0 (#279)
Added a number of additional details for the breaking changes being introduced in order to make it easier for existing users to migrate their code. Some very minor changes have been additionally made to fix some documentation or parameter typename issues. Given that 0.15.0 still hasn't been officially published yet, these changes will be part of the eventual 0.15.0 release.
1 parent 515c1db commit db5d33e

6 files changed

+65
-16
lines changed

CHANGELOG.md

+60-11
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
[0.15.0](https://github.com/PowerShell/PowerShellForGitHub/tree/0.15.0) - (2020/08/16)
55
### Overview:
6-
This is a significant update that has a number of breaking changes amongst its payload.
6+
This is a significant update that has a number of breaking changes amongst its payload that
7+
existing users need to be made aware of.
78

89
### Highlights:
910
+ Complete pipeline support has been added to the module. You can now pipe the output of almost
@@ -54,23 +55,71 @@ This is a significant update that has a number of breaking changes amongst its p
5455

5556
### Breaking Changes
5657

57-
#### Stardized naming (and verb usage) throghout the module
58+
#### Stardized naming (and verb usage) throughout the module
5859
* A number of commands have been renamed to follow the pattern that we're standardizing on:
5960
`Get` / `Set` / `New` / `Remove`
6061
(but we will continue to alias `Remove-*` as `Delete-*`).
61-
62-
* The following renames have occurred:
63-
* `Update-GitHubCurrentUser` -> `Set-GitHubProfile` `[Alias('Update-GitHubCurrentUser')]`
64-
* `Update-GitHubIssue` -> `Set-GitHubIssue` `[Alias('Update-GitHubIssue')]`
65-
* `Update-GitHubRepository` -> `Set-GitHubRepository` `[Alias('Update-GitHubRepository')]`
66-
* `New-GitHubAssignee` -> `Add-GitHubAssignee` `[Alias('New-GitHubAssignee')]`
67-
* [breaking] `Update-GitHubLabel` -> `Set-GitHubLabel` `[Alias('Update-GitHubLabel')]`
68-
* [breaking] `Set-GitHubLabel` -> `Initialize-GitHubLabel` `<no alias due to above>`
62+
* That resulted in the following command renames:
63+
* `Get-GitHubComment` -> `Get-GitHubIssueComment` `[Alias('Get-GitHubComment)]`
64+
* `New-GitHubAssignee` -> `Add-GitHubAssignee` `[Alias('New-GitHubAssignee')]`
65+
* `New-GitHubComment` -> `New-GitHubIssueComment` `[Alias('New-GitHubComment)]`
66+
* `Remove-GitHubComment` -> `Remove-GitHubIssueComment` `[Alias('Remove-GitHubComment)]`
67+
* `Set-GitHubLabel` -> `Initialize-GitHubLabel` _[breaking behavior due to the `Update-GitHubLabel` change below]_`
68+
* `Update-GitHubCurrentUser` -> `Set-GitHubProfile` `[Alias('Update-GitHubCurrentUser')]`
69+
* `Update-GitHubIssue` -> `Set-GitHubIssue` `[Alias('Update-GitHubIssue')]`
70+
* `Update-GitHubLabel` -> `Set-GitHubLabel` `[Alias('Update-GitHubLabel')]`
71+
_[breaking behavior since `Set-GitHubLabel` used to do something else]_
72+
* `Update-GitHubRepository` -> `Set-GitHubRepository` `[Alias('Update-GitHubRepository')]`
73+
74+
* The following parameter renames occurred as well:
75+
* `Add-GitHubIssueLabel`: `Name` -> `Label`
76+
* `Get-GitHubCodeOfConduct`: `Name` -> `Key`
77+
* `Get-GitHubProjectCard`: `ArchivedState` -> `State` (although we kept an alias for `ArchivedState`)
78+
* `Get-GitHubLabel`: `Name` -> `Label`, `Milestone` -> `MilestoneNumber`
79+
* `Get-GitHubLicense`: `Name` -> `Key`
80+
* `Get-GitHubRelease`: `ReleaseId` -> `Release` (although we kept an alias for `ReleaseId`)
81+
* `Get-GitHubRepositoryBranch`: `Name` -> `BranchName`
82+
* `Get-GitHubUser`: `User` -> `UserName` (although we kept an alias for `User`)
83+
* `Get-GitHubUserContextualInformation`: There is no longer `SubjectId` and `Subject`.
84+
Instead you either specify `OrganizationId`, `RepositoryId`, `IssueId` or `PullRequestId`.
85+
* `Move-GitHubProjectCard`: `ColumnId` -> `Column` (although we kept an alias for `ColumnId`)
86+
* `New-GitHubLabel`: `Name` -> `Label`
87+
* `New-GitHubProject`: `Name` -> `ProjectName` (although we kept an alias for `Name`)
88+
* `New-GitHubProjectCard`: There is no longer `ContentId` and `ContentType`.
89+
Instead you either specify `IssueId` or `PullRequestId`.
90+
* `New-GitHubProjectColumn`: `Name` -> `ColumnName` (although we kept an alias for `Name`)
91+
* `Remove-GitHubIssueLabel`: `Name` -> `Label`
92+
* `Remove-GitHubLabel`: `Name` -> `Label`
93+
* `Rename-GitHubRepository`: `html_url` alias for `Uri` has been removed
94+
* `Set-GitHubIssueLabel`: `Name` -> `Label`
95+
* `Set-GitHubLabel` (formerly `Update-GitHubLabel`): `Name` -> `Label`
96+
* `Set-GitHubProjectColumn`: `Name` -> `ColumnName` (although we kept an alias for `Name`)
97+
* `Set-GitHubRepositoryTopic`: `Name` -> `Topic` (although we kept an alias for `Name`)
6998

7099
#### Other breaking changes
71-
* All `Remove-*` functions (and some `Rename-*` functions) now prompt for confirmation before
100+
* All `Remove-*` functions (and some `Rename-*`/`Set-*` functions) now prompt for confirmation before
72101
performing the requested action. This can be silently bypassed by passing-in `-Confirm:$false`
73102
or `-Force`.
103+
* Affected commands that existed in previous releases:
104+
* `Remove-GitHubAssignee`
105+
* `Remove-GitHubIssueComment` (formerly named `Remove-GitHubComment`)
106+
* `Remove-GitHubIssueLabel`
107+
* `Remove-GitHubLabel`
108+
* `Remove-GitHubMilestone`
109+
* `Remove-GitHubProject`
110+
* `Remove-GitHubProjectCard`
111+
* `Remove-GitHubProjectColumn`
112+
* `Remove-GitHubRepository`
113+
* `Rename-GitHubRepository`
114+
* `Set-GitHubLabel` (formerly named `Update-GitHubLabel`)
115+
* `Set-GitHubRepository` (only affected when being used to rename the repository)
116+
117+
* Some parameters have had their type updated:
118+
* `Comment`: `[string]` -> `[int64]`
119+
* `Issue`/`IssueNumber`: `[string]`/`[int]` -> `[int64]`
120+
* `Milestone`/`MilestoneNumber`: `[string]` -> `[int64]`
121+
* `PullRequest`/`PullRequestNumber`: `[string]`/`[int]` -> `[int64]`
122+
* `Release`/`ReleaseId`: `[string]` -> `[int64]`
74123

75124
* `WhatIf` support changes:
76125
* Only GitHub state-changing commands now support `-WhatIf` (which means `Get-GitHub*` and

GitHubContents.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Set-Variable -Scope Script -Option ReadOnly -Name $_.Key -Value $_.Value
55
}
66

7-
filter Get-GitHubContent
7+
filter Get-GitHubContent
88
{
99
<#
1010
.SYNOPSIS

GitHubIssueComments.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ filter Get-GitHubIssueComment
164164
ValueFromPipelineByPropertyName,
165165
ParameterSetName='CommentUri')]
166166
[Alias('CommentId')]
167-
[string] $Comment,
167+
[int64] $Comment,
168168

169169
[Parameter(
170170
Mandatory,

GitHubPullRequests.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ filter New-GitHubPullRequest
327327
ValueFromPipelineByPropertyName,
328328
ParameterSetName='Uri_Issue')]
329329
[Alias('IssueNumber')]
330-
[int] $Issue,
330+
[int64] $Issue,
331331

332332
[Parameter(Mandatory)]
333333
[string] $Head,

GitHubRepositories.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,7 @@ filter Get-GitHubRepositoryContributor
15811581
GitHub.Repository
15821582
15831583
.OUTPUTS
1584-
GitHub.User
1584+
GitHub.Contributor
15851585
GitHub.RepositoryContributorStatistics
15861586
15871587
.EXAMPLE

GitHubUsers.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ filter Get-GitHubUser
1919
2020
The Git repo for this module can be found here: http://aka.ms/PowerShellForGitHub
2121
22-
.PARAMETER User
22+
.PARAMETER UserName
2323
The GitHub user to retrieve information for.
2424
If not specified, will retrieve information on all GitHub users
2525
(and may take a while to complete).

0 commit comments

Comments
 (0)