From 4d2d73ffa2b05fed2baeed811d1d5d0c55b47d1b Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Sun, 5 Apr 2026 11:03:46 -0700 Subject: [PATCH 1/3] Remove unnecessary condition for merging codegen pull requests in workflow Signed-off-by: Pieter Viljoen --- .github/workflows/merge-bot-pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/merge-bot-pull-request.yml b/.github/workflows/merge-bot-pull-request.yml index 8f90e11b..9b73945a 100644 --- a/.github/workflows/merge-bot-pull-request.yml +++ b/.github/workflows/merge-bot-pull-request.yml @@ -35,7 +35,7 @@ jobs: merge-codegen: name: Merge codegen pull request job runs-on: ubuntu-latest - if: github.actor == 'github-actions[bot]' && github.event.pull_request.head.ref == 'codegen' && github.event.pull_request.head.repo.full_name == github.repository + if: github.event.pull_request.head.ref == 'codegen' && github.event.pull_request.head.repo.full_name == github.repository permissions: contents: write pull-requests: write From f28d37ae953c99c2c67a54bb1e98abf556ba3064 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Sun, 5 Apr 2026 11:05:22 -0700 Subject: [PATCH 2/3] Fix JSON formatting in tasks.json by correcting array indentation Signed-off-by: Pieter Viljoen --- .vscode/tasks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 2846d7f9..91ab548b 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -109,5 +109,5 @@ "clear": false } } - ] + ] } From 5d22d33c831a48db3c97795eaf3c4f1a42839ab2 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Sun, 5 Apr 2026 11:13:51 -0700 Subject: [PATCH 3/3] Add label to codegen pull request for automated processing Signed-off-by: Pieter Viljoen --- .github/workflows/merge-bot-pull-request.yml | 2 +- .github/workflows/run-codegen-pull-request-task.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/merge-bot-pull-request.yml b/.github/workflows/merge-bot-pull-request.yml index 9b73945a..8ce8d48a 100644 --- a/.github/workflows/merge-bot-pull-request.yml +++ b/.github/workflows/merge-bot-pull-request.yml @@ -35,7 +35,7 @@ jobs: merge-codegen: name: Merge codegen pull request job runs-on: ubuntu-latest - if: github.event.pull_request.head.ref == 'codegen' && github.event.pull_request.head.repo.full_name == github.repository + if: github.event.pull_request.head.ref == 'codegen' && github.event.pull_request.head.repo.full_name == github.repository && contains(github.event.pull_request.labels.*.name, 'automated-codegen') permissions: contents: write pull-requests: write diff --git a/.github/workflows/run-codegen-pull-request-task.yml b/.github/workflows/run-codegen-pull-request-task.yml index a61ff6da..721e529e 100644 --- a/.github/workflows/run-codegen-pull-request-task.yml +++ b/.github/workflows/run-codegen-pull-request-task.yml @@ -44,3 +44,4 @@ jobs: commit-message: 'Update codegen files' delete-branch: true sign-commits: true + labels: automated-codegen