]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
github: LLM-review: stop reviewing new PRs automatically
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 21 May 2026 19:11:54 +0000 (21:11 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 23 May 2026 17:33:59 +0000 (19:33 +0200)
Drop the pull_request_target trigger so the LLM review no longer runs
on opened/reopened PRs. We are limited to 15 Claude routine runs per
day, and the automatic per-PR trigger exhausted that budget on
several days, starving the nightly digest.

The nightly schedule and manual workflow_dispatch triggers remain.

Link: https://github.com/openwrt/openwrt/pull/23474
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
.github/workflows/llm-review.yml

index f35c76c630864966b277f8eb51029fe88446cab5..faf53301174391e5e28be3b4e864edb92c493c5d 100644 (file)
@@ -1,8 +1,6 @@
 name: LLM Review
 
 on:
-  pull_request_target:
-    types: [opened, reopened]
   schedule:
     - cron: '0 3 * * *'
   workflow_dispatch:
@@ -16,7 +14,7 @@ on:
 permissions: {}
 
 concurrency:
-  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 'nightly' }}
+  group: ${{ github.workflow }}-nightly
   cancel-in-progress: false
 
 jobs:
@@ -66,17 +64,6 @@ jobs:
           echo "Computed extra_repos: $extra"
           echo "extra_repos=$extra" >> "$GITHUB_OUTPUT"
 
-  pr-review:
-    if: github.event_name == 'pull_request_target' && github.repository_owner == 'openwrt'
-    needs: detect-kernels
-    permissions: {}
-    uses: openwrt/actions-shared-workflows/.github/workflows/reusable_llm-pr-review.yml@main
-    with:
-      routine_id: ${{ vars.LLM_ROUTINE_ID_PR }}
-      extra_repos: ${{ needs.detect-kernels.outputs.extra_repos }}
-    secrets:
-      llm_routine_token: ${{ secrets.LLM_ROUTINE_TOKEN_PR }}
-
   nightly:
     if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository_owner == 'openwrt'
     needs: detect-kernels