From d1212201d11aa35baf4e5a369155d79dfb1f923b Mon Sep 17 00:00:00 2001 From: arka Date: Sat, 17 May 2025 20:07:58 -0300 Subject: [PATCH] fixed bug in "issues" badge count (was counting sum of PRs and issues) --- .github/actions/gwy/badges/action.yml | 7 ++++--- CHANGELOG.md | 7 +++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/actions/gwy/badges/action.yml b/.github/actions/gwy/badges/action.yml index e5871dd..b4694d4 100644 --- a/.github/actions/gwy/badges/action.yml +++ b/.github/actions/gwy/badges/action.yml @@ -485,9 +485,10 @@ runs: echo "**Issues:**" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY - ISSUES=$(curl -s -H "Authorization: Bearer ${{ inputs.token }}" \ - "https://api.github.com/repos/${GITHUB_REPOSITORY}/issues?state=open" | jq -r 'length') - + ISSUES=$(curl -s -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ inputs.token }}" \ + "https://api.github.com/search/issues?q=repo:${GITHUB_REPOSITORY}+is:issue+state:open" \ + | jq .total_count) + if [ -n "$ISSUES" ]; then SAVE_FAILED=false for STYLE in flat flat-square plastic for-the-badge; do diff --git a/CHANGELOG.md b/CHANGELOG.md index 11427ff..578d14e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.0-beta.2] - XXXX-XX-XX + +### Fixed + +- Badges Generation Workflow: Fixed bug in "Issues" count badge, + it was summing together opened issues and pull requests. + ## [1.0.0-beta.1] - 2025-05-16 This is the first official release beta.