diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index 17f1f572f2..587e1a6b4c 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -2,7 +2,7 @@ name: AI Review PR on: pull_request: - types: [opened] + types: [opened, synchronize] workflow_dispatch: inputs: pr_number: @@ -19,6 +19,15 @@ concurrency: cancel-in-progress: true jobs: + debug: + runs-on: ubuntu-latest + steps: + - name: Debug author_association + run: | + echo "event_name = ${{ github.event_name }}" + echo "assoc = ${{ github.event.pull_request.author_association }}" + echo "contains = ${{ contains(fromJson('["OWNER","MEMBER","COLLABORATOR"]'), github.event.pull_request.author_association) }}" + review: if: github.event_name == 'workflow_dispatch' || contains(fromJson('["OWNER","MEMBER","COLLABORATOR"]'), github.event.pull_request.author_association) timeout-minutes: 10