codeant-ai-for-open-source[bot] commented on PR #38155:
URL: https://github.com/apache/superset/pull/38155#issuecomment-3939109074
## **Sequence Diagram**
The workflow change runs pre-commit hooks only against files changed in the
PR by calling a local FilesChangeAction, then invokes pre-commit with that file
list and fails the job if hooks modify files or report issues. This reduces
unnecessary checks on unrelated files.
```mermaid
sequenceDiagram
participant GitHub as GitHub Actions
participant Repo as Repository (checkout)
participant FilesAction as FilesChangeAction
participant PreCommit as pre-commit
participant Git as Git
GitHub->>Repo: Checkout & setup environment
GitHub->>FilesAction: Run action to list changed files
FilesAction-->>GitHub: outputs.files (changed file list)
GitHub->>PreCommit: Run pre-commit --files <changed files>
PreCommit->>Git: Modify or report issues (if any)
Git-->>GitHub: git diff status
GitHub->>GitHub: Fail job if pre-commit failed or repo dirty
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]