8000 Run pre-commit checks on diff with trunk by daskol · Pull Request #58 · nntile/nntile · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Run pre-commit checks on diff with trunk #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 28, 2024
Merged

Conversation

daskol
Copy link
Member
@daskol daskol commented Jun 28, 2024

This change to CI is equivalently running pre-commit on diff between current ref and trunk as follows.

pre-commit run --from-ref $(git merge-base main HEAD) --to-ref HEAD

If merge base matches main then the command is equivalent to the following.

pre-commit run --from-ref main --to-ref $(git branch --show-current)

@daskol daskol added the ci Builds, testing, images, and so on label Jun 28, 2024
@daskol daskol force-pushed the daskol/pre-commit-on-diff branch 7 times, most recently from b207ecf to 5f34297 Compare June 28, 2024 13:02
@daskol daskol force-pushed the daskol/pre-commit-on-diff branch from 5f34297 to 46935b8 Compare June 28, 2024 13:05
@daskol daskol marked this pull request as ready for review June 28, 2024 13:10
@daskol daskol merged commit 6e94f0f into main Jun 28, 2024
4 checks passed
@daskol daskol deleted the daskol/pre-commit-on-diff branch June 28, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Builds, testing, images, and so on
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant
0