Skip to content

Add release view --json export support#3656

Merged
mislav merged 2 commits intotrunkfrom
release-json-export
May 18, 2021
Merged

Add release view --json export support#3656
mislav merged 2 commits intotrunkfrom
release-json-export

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented May 18, 2021

Example:

$ gh release view --json assets

Followup to #3414
Bonus: fixes #3037

mislav added 2 commits May 18, 2021 19:40
When using GITHUB_TOKEN in Actions, the permissions on a repository are
null and therefore we can't check whether the viewer has push access or
not. The solution is to unconditionally check for draft releases instead
of trying to be smart about it. Draft releases are going to be on top,
so we don't have to paginate through all releases in a repository.
@mislav mislav merged commit 001e92e into trunk May 18, 2021
@mislav mislav deleted the release-json-export branch May 18, 2021 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accessing draft releases is not possible using GITHUB_TOKEN in Actions

1 participant