-
Notifications
You must be signed in to change notification settings - Fork 2
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
Github release downloads slice is empty #2
Comments
Fetching a release by id:
the id could be used to fetch the release:
the whole list
|
To answer my own question, in the meantime I switched from go-appcast to google/go-github where I am able to fetch the release assets. |
Exactly. GitHub Atom Feed shows only some basic information about the releases and much important data is omitted. For example, releases stability and downloads, as you have already mentioned. I was planning to add GitHub API support for quite a while in order to retrieve the missing data. I will definitely add this feature alongside with #1 in the next couple of days. Thank you @xor-gate for all your suggestions. You are awesome! |
No problem @victorpopkov, for now I will use my own simple implementation but if you need some feedback or a little help let me know by '@' mentioning me. |
So I created a "production" script to transpile which is just a single file https://github.com/syncthing/syncthing-macos/blob/develop/script/ghreleases2appcast.go. Maybe usefull for inspiration. |
I expect the uploaded files to the github releases added to the release.Downloads slice. But it stays empty. Probably the github API must be used to itterate over this because the atom file doesn't contain the files.
https://github.com/xor-gate/syncthing-macosx/releases.atom at https://api.github.com/repos/xor-gate/syncthing-macosx/releases
Docs: https://developer.github.com/v3/repos/releases/
The text was updated successfully, but these errors were encountered: