Getting an empty list of release assets for my repo

I’m trying to figure out the asset ID of a release on my repository.

I’m running:

curl -H "Accept: application/vnd.github.v3+json"  \
https://api.github.com/repos/eyalroz/printf/releases

and get a nice JSON result … except that the asset array is empty. I definitely have a release, here.

I also tried GET’ing from the assets_url, and got an empty array.

Why is this happening and what can I do?

The sources zip and sources tar don’t count as release assets.

@katsute :

  1. Why not? Those are the release assets… I don’t release anything else. And the release page calls them assets.
  2. Can I count those downloads some other way?
  1. Why not? Those are the release assets… I don’t release anything else. And the release page calls them assets.

The GitHub API only considers release assets added by you as a release asset.

  1. Can I count those downloads some other way?

At the moment there doesn’t seem to be a way to get the download stats for those files.

More discussion on that here: Provide source code archive download statistics · Issue #593 · isaacs/github · GitHub