|
3 | 3 |
|
4 | 4 | [0.15.0](https://github.com/PowerShell/PowerShellForGitHub/tree/0.15.0) - (2020/08/16)
|
5 | 5 | ### 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. |
7 | 8 |
|
8 | 9 | ### Highlights:
|
9 | 10 | + 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
|
54 | 55 |
|
55 | 56 | ### Breaking Changes
|
56 | 57 |
|
57 |
| -#### Stardized naming (and verb usage) throghout the module |
| 58 | +#### Stardized naming (and verb usage) throughout the module |
58 | 59 | * A number of commands have been renamed to follow the pattern that we're standardizing on:
|
59 | 60 | `Get` / `Set` / `New` / `Remove`
|
60 | 61 | (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`) |
69 | 98 |
|
70 | 99 | #### 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 |
72 | 101 | performing the requested action. This can be silently bypassed by passing-in `-Confirm:$false`
|
73 | 102 | 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]` |
74 | 123 |
|
75 | 124 | * `WhatIf` support changes:
|
76 | 125 | * Only GitHub state-changing commands now support `-WhatIf` (which means `Get-GitHub*` and
|
|
0 commit comments