From 9bab09b06efafd37a1ee304c8d24dd55475281e3 Mon Sep 17 00:00:00 2001 From: arka Date: Sat, 17 May 2025 20:07:58 -0300 Subject: [PATCH 1/3] 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. From 611183ba2fb1b44ebf08f0e4c7fa915736228c16 Mon Sep 17 00:00:00 2001 From: arka Date: Sun, 18 May 2025 21:53:38 -0300 Subject: [PATCH 2/3] - Badges Generation Workflow: added trigger on release pushes event to additional "master" branch `main` --- .github/workflows/gwy-badges.yml | 1 + CHANGELOG.md | 5 +++++ README.md | 13 +++++++++++++ 3 files changed, 19 insertions(+) diff --git a/.github/workflows/gwy-badges.yml b/.github/workflows/gwy-badges.yml index 99f8369..28b9b83 100644 --- a/.github/workflows/gwy-badges.yml +++ b/.github/workflows/gwy-badges.yml @@ -100,6 +100,7 @@ env: on: push: branches: + - main - master workflow_dispatch: diff --git a/CHANGELOG.md b/CHANGELOG.md index 578d14e..8a1885c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.0.0-beta.2] - XXXX-XX-XX +### Added + +- Badges Generation Workflow: added trigger on release + pushes event to additional "master" branch `main` + ### Fixed - Badges Generation Workflow: Fixed bug in "Issues" count badge, diff --git a/README.md b/README.md index 955285f..79cc75f 100644 --- a/README.md +++ b/README.md @@ -553,6 +553,19 @@ them in your documentation, getting updated automatically in your next release. You can also schedule a daily job to run the workflow, updating automatically all your count badges like `Downloads` and `Stars`. +By default, this workflow gets triggered automatically on push events to +popular "master" branches `master` and `main`. If you happen to have a +different one, you can customize your releases master branch name by editing +the following block inside the workflow file: + +``` +on: + push: + branches: + - main + - master +``` + Configure the badges target branch, the target directory within it and which of the available GitHub domains you want the urls to be generated with editing the variables at the top of the workflow `.github/workflows/gwy-badges.yml`, From 8061264ac0b73c1da75c288e4cbd3b381bf03bf5 Mon Sep 17 00:00:00 2001 From: arka Date: Sun, 18 May 2025 22:49:55 -0300 Subject: [PATCH 3/3] Release 1.0.0-beta.2 --- CHANGELOG.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a1885c..64e608c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +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 +## [1.0.0-beta.2] - 2025-05-18 + +This is the first official release beta. + +The project has been [extensively tested](https://github.com/earcamone/gwy-playground/actions) +but because, at the end of the day, it's a sole programmer project, I'm leaving +some space for possible bugs reporting so, if you find some, kindly report them. ### Added