Skip to content

Commit

Permalink
feat: improve labeling
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgepiloto committed Jan 26, 2024
1 parent 3bac8ac commit 918d781
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 14 deletions.
3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

63 changes: 53 additions & 10 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,53 @@
documentation:
- doc/source/**/*
maintenance:
- .github/**/*
- .flake8
- pyproject.toml
dependencies:
- requirements/*
plotting:
- src/lamberthub/plotting/**/*
# This file is required by the the action 'https://github.com/actions/labeler'
# and used in the '.github/workflows/ci_cd_pr.yml' workflow

# -- Labels based on PR title ------------------------------------------------
'fix':
- head-branch: ['fix']

'enhancement':
- head-branch: ['feat']

# -- Documentation labels ----------------------------------------------------
'docs':
- all:
- changed-files:
- any-glob-to-any-file: ['doc/source/**/*.rst']
- all-globs-to-all-files: ['!doc/source/examples.rst', '!doc/source/api/**/*.rst', '!doc/styles/**', '!doc/.vale.ini']

'docs:api':
- any:
- changed-files:
- any-glob-to-any-file: ['doc/source/api/**/*.rst']

'docs:examples':
- any:
- changed-files:
- any-glob-to-any-file: ['examples/**/*.py', 'doc/source/examples.rst']


## -- Other labels ------------------------------------------------------------
'code-style':
- any:
- changed-files:
- any-glob-to-any-file: ['.pre-commit-config.yaml', 'doc/.vale.ini']

'docker':
- any:
- changed-files:
- any-glob-to-any-file: ['docker/**']

'ci':
- any:
- changed-files:
- any-glob-to-any-file: ['.github/workflows/**']

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

'plotting':
- any:
- changed-files:
- any-glob-to-any-file: ['src/lamberthub/plotting/**']
2 changes: 1 addition & 1 deletion .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
color: dcbeff

- name: 'style:branch-name'
description: Verifies branch name is compliant with PyAnsys guidelines
description: Verifies branch name is compliant with naming guidelines
color: dcbeff

- name: 'style:skip'
Expand Down

0 comments on commit 918d781

Please sign in to comment.