badges / shields

Concise, consistent, and legible badges in SVG and raster format
https://shields.io
Creative Commons Zero v1.0 Universal
23.66k stars 5.49k forks source link

macports version #9588

Open colindean opened 1 year ago

colindean commented 1 year ago

📋 Description

I'd like to see a Version category badge for macports using its search interface at https://ports.macports.org.

🔗 Data

https://ports.macports.org/api/v1/ports/:package_name

It's achievable with a Dynamic JSON badge for now:

https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fports.macports.org%2Fapi%2Fv1%2Fports%2Fproxy-audio-device%2F&query=%24.version&label=macports

proxy-audio-device

🎤 Motivation

Shields has badges for several other package managers, and although I'm a fervent Homebrew user, I'd like to see macports supported, too.

manzil-infinity180 commented 1 year ago

📋 Description

I'd like to see a Version category badge for macports using its search interface at https://ports.macports.org.

🔗 Data

https://ports.macports.org/api/v1/ports/:package_name

It's achievable with a Dynamic JSON badge for now:

https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fports.macports.org%2Fapi%2Fv1%2Fports%2Fproxy-audio-device%2F&query=%24.version&label=macports

proxy-audio-device

🎤 Motivation

Shields has badges for several other package managers, and although I'm a fervent Homebrew user, I'd like to see macports supported, too.

Screenshot 2023-09-21 at 12 50 49 AM

Provide the url and query i will work on it

colindean commented 1 year ago

The URL is https://ports.macports.org/api/v1/ports/:package_name where :package_name is the package name and the query is simply $.version.

manzil-infinity180 commented 1 year ago

The URL is https://ports.macports.org/api/v1/ports/:package_name where :package_name is the package name and the query is simply $.version.

OK I will work on that issue under hacktoberfest

manzil-infinity180 commented 1 year ago

@colindean

Screenshot 2023-10-01 at 12 57 08 AM Screenshot 2023-10-01 at 12 57 04 AM
colindean commented 1 year ago

Yes, that's just like the example using the Dynamic JSON that I came up with in my original post! I'd love to see it be a part of the collection of services and not just a Dynamic JSON implementation.

manzil-infinity180 commented 1 year ago

Yes, that's just like the example using the Dynamic JSON that I came up with in my original post! I'd love to see it be a part of the collection of services and not just a Dynamic JSON implementation.

can i raise the pr for that

colindean commented 1 year ago

Go for it!

manzil-infinity180 commented 1 year ago

Go for it!

Merge the pr

colindean commented 1 year ago

I do not have merge permissions but the work that you did in that PR is not what the intended work was to be. The intention is to add Macports as a fully-qualified additional service just like all of the others, not using a dynamic Json URL.

jcs090218 commented 1 month ago

Any update on this?