Add Sha and Pipeline support to New-GitHubRepositoryBranch #261
Labels
enhancement
An issue or pull request introducing new functionality to the project.
in progress
Work on this issue is already underway. Please don't work start new work on it.
Feature Idea Summary
Follow-up from PR feedback:
This should have an optional parameter for
Sha
. If not supplied, I agree, the function can continue to look up the existing Sha value. However, in the event that a user pipes in aGitHub.Branch
object, it should have everything that it needs.New-GitHubRepositoryBranch
should be able to completely take in aGitHub.Branch
object as its pipeline input. It should therefore have[Parameter(ValueFromPipelineByPropertyName)]
added to$BranchName
.Add-GitHubBranchAdditionalProperties
should addSha
as a top-level property that it adds to aGitHub.Branch
object.New-GitHubRepositoryBranch
should have an optionalSha
property that can receiveValueFromPipelineByPropertyName
, and only resorts to looking up theSha
via an additional REST request if it wasn't supplied.Feature Idea Additional Details
Requested Assignment
Operating System
PowerShell Version
Module Version
The text was updated successfully, but these errors were encountered: