No Code Attached Yet bug
avatar ramalama
ramalama
15 Jul 2026

What happened?

  1. When we run the ci in for example https://github.com/joomla-projects/joomla-mcp it fails in the step of the newly introduces csfixer

###Why it fails

In .github/workflows/ci.yml, the Check PHP code style step runs:

php-cs-fixer
    then unconditionally on push (for forks) does:
    sh

    git add --all
    git commit -m "Fix code style issues [skip ci]"
    git push ...

From the log:

nothing to commit, working tree clean
then step exits with code 1

So the failing command is the unconditional git commit, which returns non-zero when nothing changed.

Version

5.4

Expected result

csfixer should not fail the build when the git diff is empty after the php-cs-fix run.

Actual result

Build hints
nothing to commit, working tree clean
then finally fails with
then step exits with code 1

System Information

Introduced by #47936

Joomla 5.4, php 8.5

Additional Comments

No response

avatar ramalama ramalama - open - 15 Jul 2026
avatar joomla-cms-bot joomla-cms-bot - change - 15 Jul 2026
Labels Added: No Code Attached Yet bug
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 Jul 2026
avatar alikon
alikon - comment - 15 Jul 2026

should be related to this pr #47936

avatar richard67 richard67 - change - 15 Jul 2026
The description was changed
avatar richard67 richard67 - edited - 15 Jul 2026
avatar richard67 richard67 - change - 18 Jul 2026
Status New Closed
Closed_Date 0000-00-00 00:00:00 2026-07-18 11:43:01
Closed_By richard67
avatar richard67 richard67 - close - 18 Jul 2026

Add a Comment

Login with GitHub to post a comment