From 284db0060b1bcdc8bec53d18c6c8ed21fc127a3c Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Thu, 10 Jun 2021 20:08:02 -0400 Subject: [PATCH] Fix badges showing incorrect latest release version Display the correct latest release version by modifying the image url query string to specify semantic version sorting. Without this sorting, releasing 8.9.2, 9.0.0, 9.1.0, and then 8.9.3 would cause version 8.9.3 to incorrectly appear as the current latest release. --- README.md | 2 +- TROUBLESHOOTING.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2029484..d1ddec3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # PHP Curl Class: HTTP requests made easy -[![](https://img.shields.io/github/release/php-curl-class/php-curl-class.svg?style=flat-square)](https://github.com/php-curl-class/php-curl-class/releases/) +[![](https://img.shields.io/github/release/php-curl-class/php-curl-class.svg?style=flat-square&sort=semver)](https://github.com/php-curl-class/php-curl-class/releases/) [![](https://img.shields.io/github/license/php-curl-class/php-curl-class.svg?style=flat-square)](https://github.com/php-curl-class/php-curl-class/blob/master/LICENSE) [![](https://img.shields.io/github/workflow/status/php-curl-class/php-curl-class/ci?style=flat-square)](https://github.com/php-curl-class/php-curl-class/actions/workflows/ci.yml) [![](https://img.shields.io/packagist/dt/php-curl-class/php-curl-class.svg?style=flat-square)](https://github.com/php-curl-class/php-curl-class/releases/) diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index fdd466d..26b52bc 100644 --- a/TROUBLESHOOTING.md +++ b/TROUBLESHOOTING.md @@ -7,7 +7,7 @@ $ cd php-curl-class/ $ composer update $ composer info ``` -Compare your version with latest release ![](https://img.shields.io/github/v/release/php-curl-class/php-curl-class.svg?style=flat-square&color=rgba(0,0,0,0)&label=) which is also listed on the [releases page](https://github.com/php-curl-class/php-curl-class/releases). +Compare your version with latest release ![](https://img.shields.io/github/release/php-curl-class/php-curl-class.svg?style=flat-square&sort=semver&color=rgba(0,0,0,0)&label=) which is also listed on the [releases page](https://github.com/php-curl-class/php-curl-class/releases). ### Ensure php is using the latest version of curl