From 207a8d70043138d1115577ba4e0ee391b17c65a2 Mon Sep 17 00:00:00 2001 From: DevForge Engineer Date: Sat, 11 Jul 2026 04:02:07 -0400 Subject: [PATCH] cowork-bot: add actions/checkout@v4 step to cowork-auto-pr.yml (fleet-wide defect fix) --- .github/workflows/cowork-auto-pr.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/cowork-auto-pr.yml b/.github/workflows/cowork-auto-pr.yml index 91690e6..b27f04e 100644 --- a/.github/workflows/cowork-auto-pr.yml +++ b/.github/workflows/cowork-auto-pr.yml @@ -12,6 +12,14 @@ jobs: ensure-pr: runs-on: ubuntu-latest steps: + # gh pr create requires a local git checkout to diff head against base; + # without this step every run failed with "not a git repository" and no + # PR was ever opened (fleet-wide defect: 11/11 seeded copies lacked it). + - name: Check out the pushed branch + uses: actions/checkout@v4 + with: + ref: ${{ github.ref_name }} + fetch-depth: 0 - name: Open PR for this branch if none exists env: GH_TOKEN: ${{ github.token }}