Gal Bachar
05/26/2022, 11:50 AMname: Good files check
description: set of checks to verify that branch is good
on:
pre-commit:
pre-merge:
branches:
- main
hooks:
- id: no_temp
type: webhook
description: checking no temporary files found
properties:
url: "<https://your.domain.io/webhook?notmp=true?t=1za2PbkZK1bd4prMuTDr6BeEQwWYcX2R>"
- id: no_freeze
type: webhook
description: check production is not in dev freeze
properties:
url: "<https://your.domain.io/webhook?nofreeze=true?t=1za2PbkZK1bd4prMuTDr6BeEQwWYcX2R>"
Niro
05/26/2022, 11:59 AMItai David
05/26/2022, 11:59 AMbranches:
entry empty
Note that this will not work for Tag
eventsGal Bachar
05/26/2022, 12:00 PMNiro
05/26/2022, 1:02 PM// if no branches spec found - all match
if actionOn == nil || len(actionOn.Branches) == 0 {
return true, nil
}
Providing no branch names under 'branches' or not providing 'branches' at all should do the trick . Please note: that this is the case only for lakeFS versions 0.62.0 and above.
Let us know if it works out for youGal Bachar
05/26/2022, 1:34 PMNiro
05/26/2022, 1:59 PM