Skip to content

ci: detect untracked files in verify-build drift check - #12

Merged
Gmulti merged 1 commit into
developfrom
fix/issue-2-verify-build-untracked-files
May 15, 2026
Merged

ci: detect untracked files in verify-build drift check#12
Gmulti merged 1 commit into
developfrom
fix/issue-2-verify-build-untracked-files

Conversation

@Gmulti

@Gmulti Gmulti commented May 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • git diff --quiet -- skills/ only inspects tracked files, so a newly created file under skills/ after a build was invisible to the check and CI would pass even though the contributor forgot to commit it.
  • Switch to git status --porcelain -- skills/, which surfaces untracked, modified, and deleted entries, and print the offending paths in the error output.

Closes #2

Test plan

  • Add a new src/skills/.../foo.md, run bash scripts/build.sh, commit only src/, push: CI should now fail and list the untracked skills/.../foo.md.
  • Modifying or deleting an existing skills file should still fail as before.
  • A clean build (no drift) should pass.

git diff only compares tracked files, so a new file added under skills/
after a build was invisible to the check and CI passed green even when
the contributor forgot to commit it. Switch to git status --porcelain
which surfaces untracked, modified, and deleted entries.

Closes #2
@Gmulti
Gmulti merged commit b821a8f into develop May 15, 2026
1 check 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.

verify-build CI misses newly added (untracked) files in skills/

1 participant