ci: fix labeller (#24935)
* ci: fix labeller * ci: fix labeller workflow
This commit is contained in:
parent
e6120f230a
commit
931e1d64a2
2 changed files with 14 additions and 2 deletions
10
.github/labeler.yml
vendored
10
.github/labeler.yml
vendored
|
|
@ -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+$']
|
||||
|
|
|
|||
6
.github/workflows/labeller.yml
vendored
6
.github/workflows/labeller.yml
vendored
|
|
@ -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 }}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue