collection of perl helpers for implementing code owner specific gitlab ci steps.
the general idea is to use the paths defined in the CODEOWNERS
file for your team to interact with the merge request by either using all paths in the CODEOWNERS
file, or intersect the merge request changes with those.
these scripts rely on a couple of environment variables.
the following environment variables are used by all scripts
DEV_TEAM
: owner as defined in theCODEOWNERS
fileEXCLUDE_PATHS
: (optional): comma seperated list of paths to exclude while defined in theCODEOWNERS
file for ownerDEV_TEAM
. defaults to empty string.CODEOWNERS
: (optional): path to codeowners file, defaults to./CODEOWNERS
the ./scripts/
directory contains scripts used in the example configuration. please use them as templates and adjust them to your needs.
most scripts generate a custom config file on the fly.
for more details on supported (static) analysis tools and implementation examples see the following: