From 9f686d38ed4ca3a115f2ccf4a3b450349e240648 Mon Sep 17 00:00:00 2001 From: Manav Date: Fri, 6 Jan 2023 15:15:10 +0530 Subject: [PATCH] Run the CLA bot only on comments to PR Right now, it unnecessarily runs and sends an email when customers open issues. Not tested, but can test it by opening an issue after this is merged. Reference: - https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment --- .github/workflows/cla.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/cla.yaml b/.github/workflows/cla.yaml index af01ccb946..25340ec9fe 100644 --- a/.github/workflows/cla.yaml +++ b/.github/workflows/cla.yaml @@ -7,6 +7,8 @@ on: jobs: CLAAssistant: + # This job only runs for pull request comments + if: ${{ github.event.issue.pull_request }} runs-on: ubuntu-latest steps: - name: "CLA Assistant"