Skip to content

Commit

Permalink
Updated actions/labeler version, labeler.yml format (#9126)
Browse files Browse the repository at this point in the history
* updated labeler version, labeler.yml

* adding permissions block...
  • Loading branch information
cneill committed Dec 8, 2023
1 parent 8e3745d commit f91b0c7
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 21 deletions.
59 changes: 41 additions & 18 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,62 @@
---
docs:
- docs/**/*
- readme-docs/**/*
- changed-files:
- any-glob-to-any-file:
- docs/**/*
- readme-docs/**/*

docker:
- docker/**/*
- docker**
- Docker*
- changed-files:
- any-glob-to-any-file:
- docker/**/*
- docker**
- Docker*

helm:
- helm/defectdojo/*
- helm/defectdojo/**/*
- changed-files:
- any-glob-to-any-file:
- helm/defectdojo/*
- helm/defectdojo/**/*

"New Migration":
- dojo/db_migrations/*
- changed-files:
- any-glob-to-any-file:
- dojo/db_migrations/*

unittests:
- unittests/**/*
- changed-files:
- any-glob-to-any-file:
- unittests/**/*

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

settings_changes:
- dojo/settings/settings.dist.py
- changed-files:
- any-glob-to-any-file:
- dojo/settings/settings.dist.py

apiv2:
- dojo/api_v2/**/*
- changed-files:
- any-glob-to-any-file:
- dojo/api_v2/**/*

ui:
- dojo/static/**/*
- dojo/templates/**/*
- dojo/templatetags/**/*
- changed-files:
- any-glob-to-any-file:
- dojo/static/**/*
- dojo/templates/**/*
- dojo/templatetags/**/*

parser:
- dojo/tools/**/*
- changed-files:
- any-glob-to-any-file:
- dojo/tools/**/*

localization:
- dojo/locale/*
- dojo/locale/**/*
- changed-files:
- any-glob-to-any-file:
- dojo/locale/*
- dojo/locale/**/*
9 changes: 6 additions & 3 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ on:

jobs:
labeler:
permissions:
contents: read
pull-requests: write
name: "Autolabeler"
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit f91b0c7

Please sign in to comment.