Skip to content

Fix CS-Fix workflow to skip fork PRs - #396

Merged
R0Wi merged 1 commit into
masterfrom
copilot/fix-github-actions-job
Aug 25, 2026
Merged

Fix CS-Fix workflow to skip fork PRs#396
R0Wi merged 1 commit into
masterfrom
copilot/fix-github-actions-job

Conversation

Copilot AI commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes the failing CS-Fix GitHub Actions job for fork-originated pull requests.

Root Cause

The lint-fix.yml workflow was triggered by PRs from forks. It tried to git fetch the PR's head branch (e.g. fix/case-insensitive-extension-check) from the upstream repo, but that branch only exists in the fork — causing the fetch to fail. Additionally, stefanzweifel/git-auto-commit-action cannot push commits back to a fork's branch from the upstream repo context.

Changes

  • Added an if condition to skip the php-cs-fixer job when the PR comes from a fork (github.event.pull_request.head.repo.full_name == github.repository)
  • Added repository input to the checkout step to ensure the correct repo is used for non-fork PRs

Co-authored-by: R0Wi <19730957+R0Wi@users.noreply.github.com>
@R0Wi
R0Wi marked this pull request as ready for review August 25, 2026 04:10
Copilot AI requested a review from R0Wi August 25, 2026 04:10
@R0Wi
R0Wi merged commit f7cf347 into master Aug 25, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants