Skip to content
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

Add format placeholder for asset URLs and labels #2519

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sorbits
Copy link

@sorbits sorbits commented Apr 18, 2020

For automated deployment it is useful to get the asset URL after creating a release, but with the existing asset list placeholder (%as) we get both the URL and its label, separated by a horizontal tab character, this is even when the label is empty, requiring us to post-process the output from hub release show --format %as <TAG>.

This commit introduces a new placeholder (%au) which allows us to obtain the URL without having to do any parsing.

For consistency we also add a placeholder for asset labels (%al).

@sorbits sorbits force-pushed the placeholder-for-asset-urls branch 2 times, most recently from 7754f89 to 213c40c Compare April 18, 2020 09:54
For automated deployment it is useful to get the asset URL after creating a release, but with the existing asset list placeholder (%as) we get both the URL and its label, separated by a horizontal tab character, this is even when the label is empty, requiring us to post-process the output from `hub release show --format %as <TAG>`.

This commit introduces a new placeholder (%au) which allows us to obtain the URL without having to do any parsing.

For consistency we also add a placeholder for asset labels (%al).
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.

None yet

1 participant