Skip to content
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

Allow more complex labels to be defined #16

Open
reececomo opened this issue Mar 16, 2020 · 3 comments
Open

Allow more complex labels to be defined #16

reececomo opened this issue Mar 16, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@reececomo
Copy link
Contributor

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 #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/**/*
@reececomo
Copy link
Contributor Author

(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\-.*'

@kaxil kaxil added the enhancement New feature or request label Mar 18, 2020
@kaxil
Copy link
Owner

kaxil commented Mar 18, 2020

(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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
@reececomo @kaxil and others