From a29d626552457a24f24b6f917a15cb23b98ebcb7 Mon Sep 17 00:00:00 2001 From: Prowler Bot Date: Wed, 25 Jun 2025 10:29:41 +0200 Subject: [PATCH] chore(gha): avoid comment on PRs for check-changelog workflow (#8104) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: César Arroba <19954079+cesararroba@users.noreply.github.com> --- .github/workflows/pull-request-check-changelog.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request-check-changelog.yml b/.github/workflows/pull-request-check-changelog.yml index d983c5ad35..b300c56bff 100644 --- a/.github/workflows/pull-request-check-changelog.yml +++ b/.github/workflows/pull-request-check-changelog.yml @@ -55,7 +55,7 @@ jobs: body-includes: '' - name: Comment on PR if changelog is missing - if: steps.check_folders.outputs.missing_changelogs != '' + if: github.event.pull_request.head.repo.full_name == github.repository && steps.check_folders.outputs.missing_changelogs != '' uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0 with: issue-number: ${{ github.event.pull_request.number }} @@ -69,7 +69,7 @@ jobs: Please add an entry to the corresponding `CHANGELOG.md` file to maintain a clear history of changes. - name: Comment on PR if all changelogs are present - if: steps.check_folders.outputs.missing_changelogs == '' + if: github.event.pull_request.head.repo.full_name == github.repository && steps.check_folders.outputs.missing_changelogs == '' uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0 with: issue-number: ${{ github.event.pull_request.number }}