boring-cyborg
boring-cyborg copied to clipboard
Allow more complex labels to be defined
Currently only basic label config is supported:
labelPRBasedOnFilePath:
schema:
- database/migrations/*
Supporting more advance options (specifically color
and description
) would add a lot of power to the tool (particularly if combined with https://github.com/kaxil/boring-cyborg/issues/15)
Example:
labelPRBasedOnFilePath:
- label: schema
files: ['database/migrations/*']
- label: 'legacy/models :fire:'
color: '#f04411'
description: 'Warning: This PR touches the legacy data models.'
files:
- lib/models/*
- lib/models/**/*
(This would, in the future, allow us to add labels based on other triggers too)
e.g.
autolabel:
- label: schema
files: ['database/migrations/*']
- label: 'Cool Project'
files: ['app/CoolProject/**', 'app/CoolProject/*']
titleRegex: '.*COOL\-.*'
(This would, in the future, allow us to add labels based on other triggers too)
e.g.
autolabel: - label: schema files: ['database/migrations/*'] - label: 'Cool Project' files: ['app/CoolProject/**', 'app/CoolProject/*'] titleRegex: '.*COOL\-.*'
That is a nice idea, I like it.