From f9a928e4e301360b8b83331d7dabdf2356a0ed02 Mon Sep 17 00:00:00 2001 From: Jimmy Royer Date: Tue, 17 Sep 2024 16:00:15 -0400 Subject: [PATCH] Re-enable the ai review action with a few conditions --- .github/workflows/code_review.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code_review.yml b/.github/workflows/code_review.yml index 2567ed3..b9ea0b3 100644 --- a/.github/workflows/code_review.yml +++ b/.github/workflows/code_review.yml @@ -1,12 +1,14 @@ name: CDS Code Review with OpenAI -# on: -# pull_request: -# types: -# - opened -# - synchronize +on: + push: + branches-ignore: + - main + permissions: write-all + jobs: code_review: + if: contains(github.event.head_commit.message, '[review]') runs-on: ubuntu-latest steps: - name: Checkout repository