From d24aebfc5b95631b106f8486979b0a862cd2256b Mon Sep 17 00:00:00 2001 From: vfdev Date: Tue, 19 Mar 2024 22:42:09 +0100 Subject: [PATCH 1/2] check-using-labeler-v5 --- .github/pr-labeler-config.yml | 34 +++++++++++++++++++++++----------- .github/workflows/triage.yml | 14 ++++++++++---- 2 files changed, 33 insertions(+), 15 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..cd0906da2aa 100644 --- a/.github/workflows/triage.yml +++ b/.github/workflows/triage.yml @@ -1,20 +1,26 @@ 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 + configuration-path: pr-labeler-config.yml # .github is auto-included, https://github.com/actions/labeler?tab=readme-ov-file#inputs repo-token: "${{ secrets.GITHUB_TOKEN }}" # Turned off due to unexpected behavior on issue opening+labeling? https://github.com/pytorch/ignite/issues/1836 From 80fc998fe3d98f2abfb30140bea28961e9547460 Mon Sep 17 00:00:00 2001 From: vfdev Date: Tue, 19 Mar 2024 22:59:56 +0100 Subject: [PATCH 2/2] fix conf paht --- .github/workflows/triage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml index cd0906da2aa..b98c3245974 100644 --- a/.github/workflows/triage.yml +++ b/.github/workflows/triage.yml @@ -20,7 +20,7 @@ jobs: - name: Pull Request Labeler uses: actions/labeler@v5 with: - configuration-path: pr-labeler-config.yml # .github is auto-included, https://github.com/actions/labeler?tab=readme-ov-file#inputs + configuration-path: .github/pr-labeler-config.yml repo-token: "${{ secrets.GITHUB_TOKEN }}" # Turned off due to unexpected behavior on issue opening+labeling? https://github.com/pytorch/ignite/issues/1836