Spaces:
Paused
Paused
Mirrowel commited on
Commit ·
6faacba
1
Parent(s): a491370
ci: this time for sure xdd x3
Browse files
.github/workflows/pr-review.yml
CHANGED
|
@@ -15,6 +15,11 @@ on:
|
|
| 15 |
description: 'The number of the PR to review manually'
|
| 16 |
required: true
|
| 17 |
type: string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
jobs:
|
| 20 |
review-pr:
|
|
@@ -582,6 +587,7 @@ jobs:
|
|
| 582 |
envsubst "$VARS" < /tmp/pr-review.md > "$TMP_DIR/assembled_prompt.txt"
|
| 583 |
|
| 584 |
- name: Review PR with OpenCode
|
|
|
|
| 585 |
env:
|
| 586 |
GITHUB_TOKEN: ${{ steps.setup.outputs.token }}
|
| 587 |
OPENCODE_PERMISSION: |
|
|
@@ -603,12 +609,18 @@ jobs:
|
|
| 603 |
TMP_DIR="${RUNNER_TEMP:-/tmp}"
|
| 604 |
opencode run --share - < "$TMP_DIR/assembled_prompt.txt"
|
| 605 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 606 |
- name: Stage Artifacts to Temp
|
| 607 |
if: always()
|
| 608 |
run: |
|
| 609 |
set -e
|
| 610 |
cp "$HOME/.config/opencode/pr-context.txt" "$RUNNER_TEMP/opencode-pr-context.txt" || true
|
| 611 |
cp "$HOME/.config/opencode/pr-diff.txt" "$RUNNER_TEMP/opencode-pr-diff.txt" || true
|
|
|
|
| 612 |
|
| 613 |
- name: Upload Artifacts
|
| 614 |
if: always()
|
|
@@ -618,4 +630,5 @@ jobs:
|
|
| 618 |
path: |
|
| 619 |
${{ runner.temp }}/assembled_prompt.txt
|
| 620 |
${{ runner.temp }}/opencode-pr-context.txt
|
| 621 |
-
${{ runner.temp }}/opencode-pr-diff.txt
|
|
|
|
|
|
| 15 |
description: 'The number of the PR to review manually'
|
| 16 |
required: true
|
| 17 |
type: string
|
| 18 |
+
skipRun:
|
| 19 |
+
description: 'TEMP DEBUG: skip opencode run (REMOVE WHEN STABLE)'
|
| 20 |
+
required: false
|
| 21 |
+
type: boolean
|
| 22 |
+
default: false
|
| 23 |
|
| 24 |
jobs:
|
| 25 |
review-pr:
|
|
|
|
| 587 |
envsubst "$VARS" < /tmp/pr-review.md > "$TMP_DIR/assembled_prompt.txt"
|
| 588 |
|
| 589 |
- name: Review PR with OpenCode
|
| 590 |
+
if: ${{ !(github.event_name == 'workflow_dispatch' && inputs.skipRun == 'true') }}
|
| 591 |
env:
|
| 592 |
GITHUB_TOKEN: ${{ steps.setup.outputs.token }}
|
| 593 |
OPENCODE_PERMISSION: |
|
|
|
|
| 609 |
TMP_DIR="${RUNNER_TEMP:-/tmp}"
|
| 610 |
opencode run --share - < "$TMP_DIR/assembled_prompt.txt"
|
| 611 |
|
| 612 |
+
- name: DEBUG Skip Notice (TEMP REMOVE WHEN STABLE)
|
| 613 |
+
if: ${{ github.event_name == 'workflow_dispatch' && inputs.skipRun == 'true' }}
|
| 614 |
+
run: |
|
| 615 |
+
echo "skipRun=true -> Skipping opencode execution. (REMOVE skipRun input + this step when stable)"
|
| 616 |
+
|
| 617 |
- name: Stage Artifacts to Temp
|
| 618 |
if: always()
|
| 619 |
run: |
|
| 620 |
set -e
|
| 621 |
cp "$HOME/.config/opencode/pr-context.txt" "$RUNNER_TEMP/opencode-pr-context.txt" || true
|
| 622 |
cp "$HOME/.config/opencode/pr-diff.txt" "$RUNNER_TEMP/opencode-pr-diff.txt" || true
|
| 623 |
+
cp "$HOME/.config/opencode/opencode.json" "$RUNNER_TEMP/opencode-config.json" || true
|
| 624 |
|
| 625 |
- name: Upload Artifacts
|
| 626 |
if: always()
|
|
|
|
| 630 |
path: |
|
| 631 |
${{ runner.temp }}/assembled_prompt.txt
|
| 632 |
${{ runner.temp }}/opencode-pr-context.txt
|
| 633 |
+
${{ runner.temp }}/opencode-pr-diff.txt
|
| 634 |
+
${{ runner.temp }}/opencode-config.json
|