From fbd9a5812c94a3f7614abf91d20ed0d51d7557cb Mon Sep 17 00:00:00 2001 From: vfdev Date: Tue, 19 Mar 2024 23:02:00 +0100 Subject: [PATCH] check using gha labeler@v5 (#3205) * check-using-labeler-v5 * fix conf paht --- .github/pr-labeler-config.yml | 34 +++++++++++++++++++++++----------- .github/workflows/triage.yml | 12 +++++++++--- 2 files changed, 32 insertions(+), 14 deletions(-) diff --git a/.github/pr-labeler-config.yml b/.github/pr-labeler-config.yml index 393adb66f75..54a20261c55 100644 --- a/.github/pr-labeler-config.yml +++ b/.github/pr-labeler-config.yml @@ -1,43 +1,55 @@ # Add 'docker' to any changes within 'docker' folder or any subfolders docker: - - docker/**/* + - changed-files: + - any-glob-to-any-file: docker/** # Add 'docs' to any changes within 'docs' folder docs: - - docs/**/* + - changed-files: + - any-glob-to-any-file: docs/** # Add 'ci' to any changes in '.github' folder ci: - - .github/**/* + - changed-files: + - any-glob-to-any-file: .github/** # Add 'examples' to any changes within 'examples' folder examples: - - examples/**/* + - changed-files: + - any-glob-to-any-file: examples/** # Add 'base' to any changes within 'base' folder "module: base": - - ignite/base/**/* + - changed-files: + - any-glob-to-any-file: ignite/base/**/* # Add 'contrib' to any changes within 'contrib' folder "module: contrib": - - ignite/contrib/**/* + - changed-files: + - any-glob-to-any-file: ignite/contrib/**/* # Add 'distributed' to any changes within 'distributed' folder "module: distributed": - - ignite/distributed/**/* + - changed-files: + - any-glob-to-any-file: ignite/distributed/**/* # Add 'engine' to any changes within 'engine' folder "module: engine": - - ignite/engine/**/* + - changed-files: + - any-glob-to-any-file: ignite/engine/**/* # Add 'handlers' to any changes within 'handlers' folder "module: handlers": - - ignite/handlers/**/* + - changed-files: + - any-glob-to-any-file: ignite/handlers/**/* # Add 'metrics' to any changes within 'metrics' folder "module: metrics": - - ignite/metrics/**/* + - changed-files: + - any-glob-to-any-file: ignite/metrics/**/* + - # Add 'utils' to any changes within 'utils' module "module: utils": - - ignite/utils.py + - changed-files: + - any-glob-to-any-file: ignite/utils.py diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml index e27afe0f611..b98c3245974 100644 --- a/.github/workflows/triage.yml +++ b/.github/workflows/triage.yml @@ -1,17 +1,23 @@ name: Triage on: - pull_request_target: - types: [opened] + # For testing purposes only + # https://github.com/actions/labeler?tab=readme-ov-file#updating-major-version-of-the-labeler + pull_request +# pull_request_target: +# types: [opened] # issues: # types: [opened] jobs: triage: + permissions: + contents: read + pull-requests: write runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - name: Pull Request Labeler -# if: github.event_name == 'pull_request_target' uses: actions/labeler@v5 with: configuration-path: .github/pr-labeler-config.yml