mirror of
https://github.com/openwrt/openwrt.git
synced 2026-06-17 10:30:25 +04:00
github: LLM-review: stop reviewing new PRs automatically
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>
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
name: LLM Review
|
name: LLM Review
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
|
||||||
types: [opened, reopened]
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 3 * * *'
|
- cron: '0 3 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -16,7 +14,7 @@ on:
|
|||||||
permissions: {}
|
permissions: {}
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || 'nightly' }}
|
group: ${{ github.workflow }}-nightly
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -66,17 +64,6 @@ jobs:
|
|||||||
echo "Computed extra_repos: $extra"
|
echo "Computed extra_repos: $extra"
|
||||||
echo "extra_repos=$extra" >> "$GITHUB_OUTPUT"
|
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:
|
nightly:
|
||||||
if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository_owner == 'openwrt'
|
if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository_owner == 'openwrt'
|
||||||
needs: detect-kernels
|
needs: detect-kernels
|
||||||
|
|||||||
Reference in New Issue
Block a user