ai-cfia / github-workflows

Reusable github workflows
MIT License
2 stars 0 forks source link

Automate the labelling of pull requests #137

Closed ThomasCardin closed 2 months ago

ThomasCardin commented 2 months ago

Automating the labelling of pull requests will help in achieving a cleaner changelog during releases. Here is the suggested configuration according to this workflow https://github.com/actions/labeler:

documentation:
- changed-files:
  - any-glob-to-any-file: 
      - 'docs/*'
      - '**/*.md'

tests:
- changed-files:
  - any-glob-to-any-file: 'tests/*'

feature:
 - head-branch: ['^feature', 'feature', '^feat', 'feat']

bug:
 - head-branch: ['^bug', 'bug', '^fix', 'fix']

epic:
 - head-branch: ['^epic', 'epic']