Skip to content

DEVOPS-1188: show pre-commit details with git diff - #213

Open
andrewg-mira wants to merge 2 commits into
mainfrom
DEVOPS-1188-pre-commit-details
Open

DEVOPS-1188: show pre-commit details with git diff#213
andrewg-mira wants to merge 2 commits into
mainfrom
DEVOPS-1188-pre-commit-details

Conversation

@andrewg-mira

@andrewg-mira andrewg-mira commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

DEVOPS-1188 - InSight: see details of pre-commit errors

Copilot AI review requested due to automatic review settings July 31, 2026 13:55
@github-actions github-actions Bot changed the title DEVOPS-1188 show pre-commit details with git diff DEVOPS-1188: show pre-commit details with git diff Jul 31, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the reusable pre-commit GitHub Actions workflow to surface any working-tree changes produced by pre-commit hooks (e.g., whitespace/eof fixes) by printing a git diff in the job logs, improving visibility into what needs to be committed or corrected.

Changes:

  • Adds an always()-guarded step to run git diff after pre-commit executes.
  • Ensures the diff step runs regardless of prior step success/failure to aid debugging.

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

run: |
uv tool run pre-commit run --hook-stage pre-push --all-files
- name: Run git diff
if: always()
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