How to list packages and versions in github package registry? #24680
-
What is the best way to list github packages in a script? Thanks, Tom |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 3 replies
-
…after a little bit of hacking I came up with the following bash script, using GraphQL/curl/jq:
just thought I’d share it. -Tom |
Beta Was this translation helpful? Give feedback.
-
Since the
|
Beta Was this translation helpful? Give feedback.
-
Apparantly they removed the updatedAt aswell which is what I was using… Not sure how to get that date now can’t find anything. Following does not work:
|
Beta Was this translation helpful? Give feedback.
-
So it seems the only way to get a date that should be something close to the actual package date would be New query:
|
Beta Was this translation helpful? Give feedback.
-
fronix:
I found the following on the GraphQL API v4 change log page: reg your updatedAt:
and on my registryPackages:
So I guess we are using some moving targets 😦 |
Beta Was this translation helpful? Give feedback.
-
Yeah I found that as well, well seems like we’ll have to rewrite these things a few times before its out of beta 😛 |
Beta Was this translation helpful? Give feedback.
-
how can i run this on nodejs? i have no idea about GraphQl |
Beta Was this translation helpful? Give feedback.
-
@SL-CodeBlaster - (late reply but for others who find this) You can use the GitHub GraphQL Explorer: Explorer - GitHub Docs Or you could use Postman:
|
Beta Was this translation helpful? Give feedback.
-
doesn't work anymore, pakageType npm deprecated and we must use GitHub rest API now |
Beta Was this translation helpful? Give feedback.
I found the following on the GraphQL API v4 change log page:
reg your updatedAt:
and on my registryPackages:
So I guess we are using some moving targets 😦
On the other hand, improving APIs is also good! :slight_smile: