8000 Add `release view --json` export support by mislav · Pull Request #3656 · cli/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add release view --json export support #3656

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 2 commits into from
May 18, 2021
Merged

Add release view --json export support #3656

merged 2 commits into from
May 18, 2021

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
0