✨ Execute Markdown workflows without Git (#443) #1476
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Review | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| review: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 | |
| - uses: denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2.0.3 | |
| with: | |
| deno-version: v2.9.5 | |
| - name: Prepare the checked-out xmd binary | |
| run: deno task setup | |
| - name: Build the checked-out xmd binary | |
| run: deno task build | |
| - name: Run review | |
| env: | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| PR_TITLE: ${{ github.event.pull_request.title }} | |
| BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
| HEAD_SHA: ${{ github.event.pull_request.head.sha }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_REPOSITORY: ${{ github.repository }} | |
| DEEPINFRA_TOKEN: ${{ secrets.DEEPINFRA_TOKEN }} | |
| run: | | |
| ./dist/xmd run .reviews/ReviewPR.md \ | |
| --plugin ./packages/code-review-agent/mod.ts \ | |
| -j .reviews/journal.jsonl \ | |
| --verbose | |
| - name: Upload journal | |
| if: always() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: review-journal-${{ github.event.pull_request.head.sha }} | |
| path: .reviews/journal.jsonl | |
| retention-days: 30 |