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

Translate Github 'archive_download_url' to nightly.link link #55

Open
barakugav opened this issue Jun 17, 2023 · 0 comments
Open

Translate Github 'archive_download_url' to nightly.link link #55

barakugav opened this issue Jun 17, 2023 · 0 comments

Comments

@barakugav
Copy link

In https://nightly.link/ its well documented how to translate artifact url to a nightly.link link, for links such as https://github.com/quassel/quassel/suites/13600506435/artifacts/749671501.
But Github API for listing existing artifacts (https://docs.github.com/en/rest/actions/artifacts#list-artifacts-for-a-repository) gives access to artifacts with different url form:
https://api.github.com/repos/quassel/quassel/actions/artifacts/749671501/zip
In the end, nightly.link convert 'https://github.com/quassel/quassel/suites/13600506435/artifacts/749671501' into this url:
https://nightly.link/quassel/quassel/actions/artifacts/749671501.zip

I think it would be better to note in the documentation that you can work without 'suite' id in the first place, and the coverter at https://nightly.link/ should know how to convert urls of the form:
https://api.github.com/repos/quassel/quassel/actions/artifacts/749671501/zip

Thanks a lot, this tool is amazing

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

No branches or pull requests

1 participant