A GitLab CI ready image which fails if the current branch is too outdated from master.
Secret Variables to set:
PLZREBASE_THRESHOLD- How many commits behind are permitted, 50 by defaultPLZREBASE_BRANCH_TO_COMPARE-masterby defaultPLZREBASE_BRANCH_PREFIX_EXCLUDE- Comma-separated prefixes to exclude (e.g.:release,dev)PLZREBASE_SLACK_WEBHOOK_URL- Incoming webhook URLPLZREBASE_SLACK_CHANNEL- Defaults to webhook channel
Example CI config:
stages:
- build
- test
[ ... ]
build:
stage: build
[ ... ]
plzrebase:
stage: build
image: kiwicom/plzrebase
script:
- plzrebase