Skip to content

fix: Editorial review PR comment acknowledgment failing#1115

Merged
justinegeffen merged 9 commits intomasterfrom
fix/editorial-review-pr-comment-acknowledgment
Apr 9, 2026
Merged

fix: Editorial review PR comment acknowledgment failing#1115
justinegeffen merged 9 commits intomasterfrom
fix/editorial-review-pr-comment-acknowledgment

Conversation

@justinegeffen
Copy link
Copy Markdown
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
Copy Markdown

netlify Bot commented Feb 6, 2026

Deploy Preview for seqera-docs ready!

Name Link
🔨 Latest commit e210347
🔍 Latest deploy log https://app.netlify.com/projects/seqera-docs/deploys/69d7edc7e7608e0008414431
😎 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
Copy Markdown
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.

Comment thread .github/workflows/docs-review.yml
@justinegeffen justinegeffen merged commit a062cf1 into master Apr 9, 2026
5 of 7 checks passed
@justinegeffen justinegeffen deleted the fix/editorial-review-pr-comment-acknowledgment branch April 9, 2026 18:20
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.

3 participants