From 2e19d97a1a7b85d5c7941747333b4905074d9dfa Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Fri, 28 Mar 2025 14:15:52 +0100 Subject: [PATCH 1/4] ci: auto-generate-changelogs I propose we do time based releases, just for the sake of it, since we already deploy at every commit --- .github/workflows/release-please.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 000000000..26bbf2f3e --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,28 @@ +name: 🚀 Adding the commit to the next release +on: + push: + branches: + - main +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - id: release + uses: googleapis/release-please-action@v4.1.4 + with: + # We can't use GITHUB_TOKEN here because, github actions can't trigger actions + # see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow + # So this is a personal access token + token: ${{ secrets.RELEASE_PLEASE_TOKEN }} + release-type: simple + pull-request-title-pattern: "chore${scope}: 🚀 Open Food Facts Explorer - Experimental frontend - Release${component} ${version}." + changelog-types: | + [ + {"type":"feat","section":"Features","hidden":false}, + {"type":"fix","section":"Bug Fixes","hidden":false}, + {"type":"taxonomy","section":"Taxonomy","hidden":false}, + {"type":"l10n","section":"Translations","hidden":false}, + {"type":"style","section":"Technical","hidden":false}, + {"type":"docs","section":"Technical","hidden":false}, + {"type":"test","section":"Technical","hidden":false} + ] From 4e129813418ba7323e29a9cea8e4732d0850e422 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Fri, 4 Apr 2025 18:04:49 +0200 Subject: [PATCH 2/4] Update pull request title pattern --- .github/workflows/release-please.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 26bbf2f3e..e5143f46a 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -15,7 +15,7 @@ jobs: # So this is a personal access token token: ${{ secrets.RELEASE_PLEASE_TOKEN }} release-type: simple - pull-request-title-pattern: "chore${scope}: 🚀 Open Food Facts Explorer - Experimental frontend - Release${component} ${version}." + pull-request-title-pattern: "chore${scope}: 🚀 Open Food Facts Explorer - Experimental frontend - Release REPLACE ME." changelog-types: | [ {"type":"feat","section":"Features","hidden":false}, From 93b7ffa3ab3909cfd3d2027819dae67fcc7534e0 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Thu, 17 Jul 2025 11:42:55 +0200 Subject: [PATCH 3/4] Update .github/workflows/release-please.yml --- .github/workflows/release-please.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index e5143f46a..9fdcaa2c3 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -15,7 +15,7 @@ jobs: # So this is a personal access token token: ${{ secrets.RELEASE_PLEASE_TOKEN }} release-type: simple - pull-request-title-pattern: "chore${scope}: 🚀 Open Food Facts Explorer - Experimental frontend - Release REPLACE ME." + pull-request-title-pattern: "chore: 🚀 changelog for Open Food Facts Explorer - Experimental frontend" changelog-types: | [ {"type":"feat","section":"Features","hidden":false}, From 6ddd554e750298fe35c94f685bb681ec093ae833 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Thu, 14 Aug 2025 10:56:33 +0200 Subject: [PATCH 4/4] Potential fix for code scanning alert no. 8: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .github/workflows/release-please.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 9fdcaa2c3..3feef6052 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -1,4 +1,7 @@ name: 🚀 Adding the commit to the next release +permissions: + contents: read + pull-requests: write on: push: branches: