From 69cab62ba3bf0b5fe59f6ff3663a0810b6da4c8a Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Sun, 2 May 2021 00:14:11 -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 be9700d..39474e1 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