From 5ebd3e75977f233ed0555872b8729e7ef310a682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Le=20Meur?= <91831478+lemeurherve@users.noreply.github.com> Date: Mon, 27 Jun 2022 22:28:35 +0200 Subject: [PATCH] fix: issues similarity comment only on open issues As noted [here](https://github.com/jenkins-infra/helpdesk/issues/2664#issuecomment-1167810201) by @timja this GHA shouldn't comment on edited issues if they are closed. --- .github/workflows/issues-similarity.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/issues-similarity.yml b/.github/workflows/issues-similarity.yml index 46ba350..ccb0b12 100644 --- a/.github/workflows/issues-similarity.yml +++ b/.github/workflows/issues-similarity.yml @@ -7,6 +7,7 @@ on: jobs: similarity-analysis: runs-on: ubuntu-latest + if: github.event.issue.state == 'open' steps: - name: analysis uses: actions-cool/issues-similarity-analysis@v1.0.0