From 630f3a0fd7cfb8e5c9ffc076f165b26ac61d850f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Malfait?= Date: Mon, 23 Mar 2026 13:33:19 +0100 Subject: [PATCH] chore: trigger automerge for AI catalog sync PRs (#18855) ## Summary - Adds a `repository-dispatch` step to the AI catalog sync workflow (`ci-ai-catalog-sync.yaml`) that notifies `twenty-infra` when a sync PR is created - This allows the automerge workflow in `twenty-infra` to reactively merge the PR instead of waiting for the next cron run ## Test plan - [ ] Verify `TWENTY_INFRA_TOKEN` secret is available (same one used by i18n workflows) - [ ] Trigger the AI catalog sync workflow manually and confirm the dispatch fires Made with [Cursor](https://cursor.com) --- .github/workflows/ci-ai-catalog-sync.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci-ai-catalog-sync.yaml b/.github/workflows/ci-ai-catalog-sync.yaml index 881f964b2c0..0da151494af 100644 --- a/.github/workflows/ci-ai-catalog-sync.yaml +++ b/.github/workflows/ci-ai-catalog-sync.yaml @@ -58,3 +58,11 @@ jobs: base: main labels: ai, automated delete-branch: true + + - name: Trigger automerge + if: steps.changes.outputs.changed == 'true' + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.TWENTY_INFRA_TOKEN }} + repository: twentyhq/twenty-infra + event-type: automated-pr-ready