From b64684e4c3880be8465e0b0c07861c4f30a8d65d Mon Sep 17 00:00:00 2001 From: Antoine Toulme Date: Thu, 28 Aug 2025 23:02:26 -0700 Subject: [PATCH 1/4] Revert "Revert "[chore] checkout depth depending if the PR is a chore" (#41868)" This reverts commit 89c963b4b39c06720d90c9704ea8e4ae1e292ca8. --- .github/workflows/changelog.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 8c6a6a5862369..7bb87bc47bdb3 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -32,7 +32,8 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 with: - fetch-depth: 0 + # Fetch complete history depth only if the PR is not a chore. + fetch-depth: ${{ !contains(github.event.pull_request.labels.*.name, 'dependencies') && !contains(github.event.pull_request.labels.*.name, 'Skip Changelog') && !contains(github.event.pull_request.title, '[chore]') && 0 || 1 }} - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5 with: go-version: oldstable From e84f5b3315122f4b327d1b985d778e0d95a4b645 Mon Sep 17 00:00:00 2001 From: Antoine Toulme Date: Thu, 28 Aug 2025 23:08:43 -0700 Subject: [PATCH 2/4] add parens --- .github/workflows/changelog.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 7bb87bc47bdb3..6dd6381bec3c8 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -33,7 +33,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 with: # Fetch complete history depth only if the PR is not a chore. - fetch-depth: ${{ !contains(github.event.pull_request.labels.*.name, 'dependencies') && !contains(github.event.pull_request.labels.*.name, 'Skip Changelog') && !contains(github.event.pull_request.title, '[chore]') && 0 || 1 }} + fetch-depth: ${{ !contains(github.event.pull_request.labels.*.name, 'dependencies') && !contains(github.event.pull_request.labels.*.name, 'Skip Changelog') && !contains(github.event.pull_request.title, '[chore]') && '0' || '1' }} - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5 with: go-version: oldstable From 62db9e6621e735474c600c9b98a7aa5e1601094c Mon Sep 17 00:00:00 2001 From: Antoine Toulme Date: Wed, 3 Sep 2025 10:56:23 -0700 Subject: [PATCH 3/4] Update .github/workflows/changelog.yml Co-authored-by: Paulo Janotti --- .github/workflows/changelog.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 6dd6381bec3c8..24760f0ead6b7 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -33,7 +33,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 with: # Fetch complete history depth only if the PR is not a chore. - fetch-depth: ${{ !contains(github.event.pull_request.labels.*.name, 'dependencies') && !contains(github.event.pull_request.labels.*.name, 'Skip Changelog') && !contains(github.event.pull_request.title, '[chore]') && '0' || '1' }} + fetch-depth: ${{ fromJSON('["0", "1"]')[contains(github.event.pull_request.title, '[chore]') || contains(github.event.pull_request.labels.*.name, 'Skip Changelog') || contains(github.event.pull_request.labels.*.name, 'dependencies')] }} - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5 with: go-version: oldstable From c952173b7420f8ce09e11bfdc432fe34a995c171 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 5 Sep 2025 09:53:46 -0700 Subject: [PATCH 4/4] Revert "Update .github/workflows/changelog.yml" This reverts commit 62db9e6621e735474c600c9b98a7aa5e1601094c. --- .github/workflows/changelog.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 24760f0ead6b7..6dd6381bec3c8 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -33,7 +33,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 with: # Fetch complete history depth only if the PR is not a chore. - fetch-depth: ${{ fromJSON('["0", "1"]')[contains(github.event.pull_request.title, '[chore]') || contains(github.event.pull_request.labels.*.name, 'Skip Changelog') || contains(github.event.pull_request.labels.*.name, 'dependencies')] }} + fetch-depth: ${{ !contains(github.event.pull_request.labels.*.name, 'dependencies') && !contains(github.event.pull_request.labels.*.name, 'Skip Changelog') && !contains(github.event.pull_request.title, '[chore]') && '0' || '1' }} - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5 with: go-version: oldstable