-
Notifications
You must be signed in to change notification settings - Fork 16
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
[CI:DOCS] Add pre-commit (app) hook to check IMGSFX #364
Conversation
Manually tested with:
Correctly throws error:
If I then
|
force-push: Renamed all |
@edsantiago PTAL, even if you don't use the After this merges, my intention is to open a followup with an example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pre-commit looks intriguing, thanks for the pointer. I can't verify the config. Some feedback on the sh part.
Force-push: Remove use of @edsantiago this is ready for final review/merging. I'll start working on a followup PR to add an example pre-commit configuration file. |
Intended for use by [the pre-commit app](https://pre-commit.com/#intro), this hook keeps track of all IMG_SFX values pushed, failing when any duplicate is found. In the case of pushing to PRs that don't build CI VM images, the hook failure must be manually bypassed. Example `.pre-commit-config.yaml`: ```yaml --- repos: - repo: https://github.com/containers/automation_images.git rev: <tag or commit sha> hooks: - id: check-imgsfx ``` Signed-off-by: Chris Evich <cevich@redhat.com>
Intended for use by the pre-commit app, this hook keeps track of all IMG_SFX values pushed, failing when any duplicate is found. In the case of pushing to PRs that don't build CI VM images, the hook failure must be manually bypassed. Example
.pre-commit-config.yaml
: