Skip to content

fix: Editorial review PR comment acknowledgment failing#1115

Open
justinegeffen wants to merge 1 commit intomasterfrom
fix/editorial-review-pr-comment-acknowledgment
Open

fix: Editorial review PR comment acknowledgment failing#1115
justinegeffen wants to merge 1 commit intomasterfrom
fix/editorial-review-pr-comment-acknowledgment

Conversation

@justinegeffen
Copy link
Contributor

Problem

The /editorial-review command in PR comments was triggering the workflow but failing on the acknowledgment step with:

failed to run git: fatal: not a git repository

Root cause

The check-trigger job runs gh pr comment without:

  1. A repository checkout (no actions/checkout@v4)
  2. An explicit --repo flag

The gh CLI needs one of these to work.

Solution

Added --repo ${{ github.repository }} flag to the gh pr comment command.

This is the minimal fix - no checkout needed since we're only posting a comment via GitHub API.

Testing

After merge, comment /editorial-review on any PR - should see:
✅ "🔍 Editorial review started! View workflow run" comment posted immediately

Related

  • Fixes recent workflow failures: runs 21752751889, 21752615355
  • Unblocks /editorial-review PR comment trigger functionality

The acknowledge command was failing with "fatal: not a git repository"
because gh CLI requires either a checkout or explicit --repo flag.

Fixes /editorial-review PR comment trigger failing on acknowledgment step.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@netlify
Copy link

netlify bot commented Feb 6, 2026

Deploy Preview for seqera-docs ready!

Name Link
🔨 Latest commit 745155a
🔍 Latest deploy log https://app.netlify.com/projects/seqera-docs/deploys/6985f19873803900089b3b35
😎 Deploy Preview https://deploy-preview-1115--seqera-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@justinegeffen justinegeffen added 1. Dev/PM/SME Needs a review by a Dev/PM/SME claude-code-assisted Vibe-coded but with human oversight and guidance. Must be validated by another human and co-pilot. automation-fix Automation bug fix. labels Feb 6, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a critical bug in the /editorial-review PR comment trigger workflow where the acknowledgment step was failing with "fatal: not a git repository" error. The fix adds the --repo flag to the gh pr comment command in the check-trigger job, allowing it to work without a repository checkout.

Changes:

  • Added --repo ${{ github.repository }} flag to gh pr comment command in the acknowledgment step

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1. Dev/PM/SME Needs a review by a Dev/PM/SME automation-fix Automation bug fix. claude-code-assisted Vibe-coded but with human oversight and guidance. Must be validated by another human and co-pilot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant