-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Support for Ansible Galaxy #286
Comments
All this information is greatly appreciated! Lacking knowledge about Ansible, however, it is difficult for me to understand which kind of badge I can provide. |
How thoughtful of me :-) I will look into it... |
Hi, @espadrine! So, 3078 is the role ID that used in API calls. I think there will be cool if next badges for ansible will be available at shields.io:
To generate all this badges we need get only role ID from user. Or even just role's galaxy URL and then automatically extract ID from hash. |
Thanks a lot for this information! That is tremendously helpful. I notice that they send a cookie ( |
@espadrine Don't think that cookies matter something. Try |
@espadrine Hi. How can I help you to force some progress on this? |
Oh, cool :) Role Id assigned to role once it added to galaxy. |
@igormukhingmailcom does getting the information like this still work? I can't find IDs on my roles. |
Ansible galaxy 2 uses "name based" urls now, but old urls should be On Friday, 19 February 2016, Scott Miller notifications@github.com wrote:
|
Sounds like we probably need a PR to fix this functionality then |
@smiller171 here's a one-liner for finding your role's ID once it's on Galaxy:
This works on Ansible |
Since this issue comes up at the top of the result list when searching for how to get a badge that shows the latest version of a collection on Ansible Galaxy, I'll post our solution for that. Ansible Galaxy returns the latest version of a collection using an HTTP GET on
That allows using the dynamic badge creation feature of shields.io, e.g. in Markdown syntax:
Resulting in this badge: |
Thanks for sharing @andy-maier! Given the above, it seems like we should be able to add a native version badge if you or anyone else would be interested in submitting a PR |
There's a REST API available at.
The text was updated successfully, but these errors were encountered: