You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This module fits very close to what I needed when querying available tags before finally downloading a release asset using the releases api. It would be even better if there was a way to filter out the tag results by providing an optional parameter to Get-GitHubRepositoryTag:
1). [string[]] TagName
When provided, filter the results by tags that have an exact match with values in the array.
I'm intending to use this cmdlet to find the existence of matching tags. When they do exist, then I can call the releases api and filter by assets names to download.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
tristanbarcelon
changed the title
Provide the ability to filter Get-GitHubRepositoryTag cmdlet results
Enhance Get-GitHubRepositoryTag cmdlet by providing ability to filter results by TagName
Nov 14, 2018
Thanks for the suggestion, Tristan. The beauty of PowerShell is how easily it lets you process data through piping. In this case, the way to achieve what you want is to filter the results through Where-Object afterwards. Example:
Given that this can be done naturally through PowerShell via post-processing, it's not something that makes sense to add explicitly to the function itself.
This module fits very close to what I needed when querying available tags before finally downloading a release asset using the releases api. It would be even better if there was a way to filter out the tag results by providing an optional parameter to Get-GitHubRepositoryTag:
1). [string[]] TagName
When provided, filter the results by tags that have an exact match with values in the array.
I'm intending to use this cmdlet to find the existence of matching tags. When they do exist, then I can call the releases api and filter by assets names to download.
Thanks in advance.
The text was updated successfully, but these errors were encountered: