ci: fix labeller (#24935)

* ci: fix labeller

* ci: fix labeller workflow
This commit is contained in:
Ankush Menat 2024-02-19 12:34:45 +05:30 committed by GitHub
parent e6120f230a
commit 931e1d64a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 2 deletions

10
.github/labeler.yml vendored
View file

@ -1,4 +1,10 @@
# Any python files modifed but no test files modified
add-test-cases:
- any: ['frappe/**/*.py']
all: ['!frappe/**/test*.py']
- all:
- changed-files:
- any-glob-to-any-file: 'frappe/**/*.py'
- all-globs-to-all-files: '!frappe/**/test*.py'
# Add 'release' label to any PR that is opened against the `main` branch
release:
- base-branch: ['^version-\d+$']

View file

@ -5,8 +5,14 @@ on:
jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v3
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"