Skip to content

fix: Fix shellStart.ts to properly handle timeout=0 for async mode #14

fix: Fix shellStart.ts to properly handle timeout=0 for async mode

fix: Fix shellStart.ts to properly handle timeout=0 for async mode #14

name: MyCoder PR Review
# This workflow is triggered when a PR is opened or updated with new commits
on:
pull_request:
types: [opened, synchronize]
# Top-level permissions apply to all jobs
permissions:
contents: read # Required for checkout
issues: read # Required for reading linked issues
pull-requests: write # Required for commenting on PRs
discussions: read # For reading discussions
statuses: write # For creating commit statuses
checks: write # For creating check runs
actions: read # For inspecting workflow runs
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
jobs:
review-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- uses: pnpm/action-setup@v4
with:
version: ${{ vars.PNPM_VERSION }}
- run: pnpm install
- run: cd packages/agent && pnpm exec playwright install --with-deps chromium
- run: |
git config --global user.name "Ben Houston (via MyCoder)"
git config --global user.email "[email protected]"
- run: pnpm install -g mycoder
- name: Get previous reviews
id: get-reviews
run: |
PR_REVIEWS=$(gh pr view ${{ github.event.pull_request.number }} --json reviews --jq '.reviews')
PR_COMMENTS=$(gh pr view ${{ github.event.pull_request.number }} --json comments --jq '.comments')
echo "reviews=$PR_REVIEWS" >> $GITHUB_OUTPUT
echo "comments=$PR_COMMENTS" >> $GITHUB_OUTPUT
- run: |
mycoder --upgradeCheck false --githubMode true --userPrompt false "Please review PR ${{ github.event.pull_request.number }} according to the guidelines in .mycoder/PR_REVIEW.md. Previous reviews and comments: ${{ steps.get-reviews.outputs.reviews }} ${{ steps.get-reviews.outputs.comments }}"