Skip to content

Complete support for Releases API #177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Jul 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
7e8a6fc
WIP
HowardWolosky May 21, 2020
12645d5
Working asset download
HowardWolosky May 22, 2020
2a340b2
Adding New/Set GitHubAsset
HowardWolosky May 22, 2020
e0e52cb
Fixing high impact stuff
HowardWolosky May 22, 2020
5fc512d
Adding verbose log message for the move-item
HowardWolosky May 22, 2020
3b62677
Minor fixes
HowardWolosky May 22, 2020
9b4c84e
Remove some unnecessary aliases
HowardWolosky May 22, 2020
f5bc7ed
minor updates
HowardWolosky May 22, 2020
daf4ac3
Fixing Static Analysis issues
HowardWolosky Jun 4, 2020
e16763f
fix casing
HowardWolosky Jun 4, 2020
fd02821
Working on tests
HowardWolosky Jun 4, 2020
35fe1b1
Applying CR feedback and adding additional tests
HowardWolosky Jun 7, 2020
b5c57a6
Applying more CR feedback
HowardWolosky Jun 8, 2020
c9235d5
Update the tests and functions to accomodate latest master changes
HowardWolosky Jun 18, 2020
8cb9157
Update the WhatIf/ShouldProcess handling per #254
HowardWolosky Jul 7, 2020
75dc009
Support UploadUrl from pipeline input and better handling of multiple…
HowardWolosky Jul 7, 2020
2bde468
Fix bad merge
HowardWolosky Jul 8, 2020
48ffb06
Update spelling of committish
HowardWolosky Jul 8, 2020
677672f
Additional PR feedback
HowardWolosky Jul 8, 2020
f6253c0
Add formatting for GitHub.Release and GitHub.ReleaseAsset
HowardWolosky Jul 9, 2020
5471ef6
Final updates and expansive UT improvements for pipelining
HowardWolosky Jul 9, 2020
5314ad1
Add missing USAGE.md entries
HowardWolosky Jul 9, 2020
71fb672
Fix positional binding, increase code cov by adding ContentType to a …
HowardWolosky Jul 9, 2020
de0e4bc
Add additional default content types, improve formatting
HowardWolosky Jul 9, 2020
9dd225d
Remove default parameter set to fix PS7 issues
HowardWolosky Jul 10, 2020
7abb1d6
Trying to fix test for linux/mac
HowardWolosky Jul 18, 2020
15de9b0
Trying to fix Get-GitHubReleaseAsset.Verifying a zip file test on Lin…
HowardWolosky Jul 20, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
135 changes: 135 additions & 0 deletions Formatters/GitHubReleases.Format.ps1xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
<ViewDefinitions>
<!--================== GitHub.Release Type View =================-->
<View>
<Name>GitHub.Release</Name>
<ViewSelectedBy>
<TypeName>GitHub.Release</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
<TableColumnHeader>
<Label>ID</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>Name</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>Tag</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>Committish</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>Draft</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>PreRelease</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>Created</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>Published</Label>
</TableColumnHeader>
</TableHeaders>
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>id</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>name</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>tag_name</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>target_commitish</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>draft</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>prerelease</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>created_at</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>published_at</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
</TableControl>
</View>
<!--=============== GitHub.ReleaseAsset Type View ===============-->
<View>
<Name>GitHub.ReleaseAsset</Name>
<ViewSelectedBy>
<TypeName>GitHub.ReleaseAsset</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
<TableColumnHeader>
<Label>ID</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>Name</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>Label</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>Size</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>Content Type</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>Downloads</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>Created</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>Updated</Label>
</TableColumnHeader>
</TableHeaders>
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>id</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>name</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>label</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>size</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>content_type</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>download_count</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>created_at</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>updated_at</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
</TableControl>
</View>
</ViewDefinitions>
</Configuration>
4 changes: 4 additions & 0 deletions GitHubAssignees.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ filter Get-GitHubAssignee
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
GitHub.User

Expand Down Expand Up @@ -159,6 +160,7 @@ filter Test-GitHubAssignee
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
GitHub.User

Expand Down Expand Up @@ -303,6 +305,7 @@ function Add-GitHubAssignee
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
GitHub.User

Expand Down Expand Up @@ -481,6 +484,7 @@ function Remove-GitHubAssignee
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository

.OUTPUTS
Expand Down
1 change: 1 addition & 0 deletions GitHubBranches.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ filter Get-GitHubRepositoryBranch
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository

.OUTPUTS
Expand Down
1 change: 1 addition & 0 deletions GitHubContents.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository

.OUTPUTS
Expand Down
Loading