Skip to content

Commit 62dd779

Browse files
committed
refactor: unify clawsweeper repair lane
1 parent 8e77181 commit 62dd779

76 files changed

Lines changed: 20374 additions & 106 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/commit-review.yml‎

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ jobs:
329329
- name: Create target checks token
330330
id: target-checks-token
331331
if: ${{ needs.plan.outputs.create_checks == 'true' }}
332-
continue-on-error: true
333332
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
334333
with:
335334
client-id: ${{ env.CLAWSWEEPER_APP_CLIENT_ID }}
@@ -339,7 +338,7 @@ jobs:
339338
permission-checks: write
340339

341340
- name: Publish commit check
342-
if: ${{ needs.plan.outputs.create_checks == 'true' && steps.target-checks-token.outputs.token != '' }}
341+
if: ${{ needs.plan.outputs.create_checks == 'true' }}
343342
working-directory: clawsweeper
344343
env:
345344
GH_TOKEN: ${{ steps.target-checks-token.outputs.token }}
@@ -424,36 +423,35 @@ jobs:
424423
git push
425424
fi
426425
427-
- name: Create Clownfish dispatch token
428-
id: clownfish-token
429-
if: ${{ vars.CLAWSWEEPER_CLOWNFISH_COMMIT_FINDINGS_ENABLED != 'false' }}
430-
continue-on-error: true
426+
- name: Create repair dispatch token
427+
id: clawsweeper-token
428+
if: ${{ vars.CLAWSWEEPER_REPAIR_COMMIT_FINDINGS_ENABLED != 'false' }}
431429
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
432430
with:
433431
client-id: ${{ env.CLAWSWEEPER_APP_CLIENT_ID }}
434432
private-key: ${{ secrets.CLAWSWEEPER_APP_PRIVATE_KEY }}
435433
owner: openclaw
436-
repositories: clownfish
434+
repositories: clawsweeper
437435
permission-actions: write
438436

439-
- name: Dispatch commit findings to Clownfish
440-
if: ${{ vars.CLAWSWEEPER_CLOWNFISH_COMMIT_FINDINGS_ENABLED != 'false' && steps.clownfish-token.outputs.token != '' }}
437+
- name: Dispatch commit findings to repair lane
438+
if: ${{ vars.CLAWSWEEPER_REPAIR_COMMIT_FINDINGS_ENABLED != 'false' }}
441439
env:
442-
GH_TOKEN: ${{ steps.clownfish-token.outputs.token }}
443-
ENABLED: ${{ vars.CLAWSWEEPER_CLOWNFISH_COMMIT_FINDINGS_ENABLED || 'true' }}
440+
GH_TOKEN: ${{ steps.clawsweeper-token.outputs.token }}
441+
ENABLED: ${{ vars.CLAWSWEEPER_REPAIR_COMMIT_FINDINGS_ENABLED || 'true' }}
444442
run: |
445443
set -euo pipefail
446444
node dist/commit-sweeper.js dispatch-findings \
447445
--artifact-dir commit-artifacts \
448-
--clownfish-repo openclaw/clownfish \
446+
--repair-repo openclaw/clawsweeper \
447+
--repair-workflow repair-commit-finding-intake.yml \
449448
--dispatch-mode workflow_dispatch \
450449
--report-repo "${{ github.repository }}" \
451450
--enabled "$ENABLED"
452451
453452
- name: Create target checks token
454453
id: target-checks-token
455454
if: ${{ needs.plan.outputs.create_checks == 'true' }}
456-
continue-on-error: true
457455
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
458456
with:
459457
client-id: ${{ env.CLAWSWEEPER_APP_CLIENT_ID }}
@@ -463,7 +461,7 @@ jobs:
463461
permission-checks: write
464462

465463
- name: Publish commit checks
466-
if: ${{ needs.plan.outputs.create_checks == 'true' && steps.target-checks-token.outputs.token != '' }}
464+
if: ${{ needs.plan.outputs.create_checks == 'true' }}
467465
env:
468466
GH_TOKEN: ${{ steps.target-checks-token.outputs.token }}
469467
run: |

0 commit comments

Comments
 (0)