shields icon indicating copy to clipboard operation
shields copied to clipboard

macports version

Open colindean opened this issue 2 years ago • 10 comments

📋 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.

colindean avatar Sep 19 '23 14:09 colindean

📋 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

manzil-infinity180 avatar Sep 20 '23 19:09 manzil-infinity180

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.

colindean avatar Sep 28 '23 04:09 colindean

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 avatar Sep 28 '23 04:09 manzil-infinity180

@colindean Screenshot 2023-10-01 at 12 57 08 AM Screenshot 2023-10-01 at 12 57 04 AM

manzil-infinity180 avatar Sep 30 '23 19:09 manzil-infinity180

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.

colindean avatar Sep 30 '23 19:09 colindean

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

manzil-infinity180 avatar Sep 30 '23 19:09 manzil-infinity180

Go for it!

colindean avatar Sep 30 '23 19:09 colindean

Go for it!

Merge the pr

manzil-infinity180 avatar Oct 01 '23 05:10 manzil-infinity180

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.

colindean avatar Oct 01 '23 16:10 colindean