ci: add auto labeller workflow

This commit is contained in:
Ankush Menat 2022-01-09 20:04:35 +05:30 committed by Ankush Menat
parent 2fe919e746
commit 23b0a3f546
2 changed files with 67 additions and 0 deletions

55
.github/labeler.yml vendored Normal file
View File

@ -0,0 +1,55 @@
accounts:
- 'erpnext/accounts/*'
- 'erpnext/controllers/accounts_controller.py'
- 'erpnext/controllers/taxes_and_totals.py'
stock:
- 'erpnext/stock/*'
- 'erpnext/controllers/stock_controller.py'
- 'erpnext/controllers/item_variant.py'
assets:
- 'erpnext/assets/*'
regional:
- 'erpnext/regional/*'
selling:
- 'erpnext/selling/*'
- 'erpnext/controllers/selling_controller.py'
buying:
- 'erpnext/buying/*'
- 'erpnext/controllers/buying_controller.py'
support:
- 'erpnext/support/*'
POS:
- 'pos*'
ecommerce:
- 'erpnext/e_commerce/*'
maintenance:
- 'erpnext/maintenance/*'
manufacturing:
- 'erpnext/manufacturing/*'
crm:
- 'erpnext/crm/*'
HR:
- 'erpnext/hr/*'
payroll:
- 'erpnext/payroll*'
projects:
- 'erpnext/projects/*'
# Any python files modifed but no test files modified
needs-tests:
- any: ['**/*.py']
- all: ['!**/test*.py']

12
.github/workflows/labeller.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: "Pull Request Labeler"
on:
- pull_request_target
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true