Skip to content

Commit

Permalink
check-using-labeler-v5
Browse files Browse the repository at this point in the history
  • Loading branch information
vfdev-5 authored Mar 19, 2024
1 parent 72a3c30 commit d24aebf
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 15 deletions.
34 changes: 23 additions & 11 deletions .github/pr-labeler-config.yml
Original file line number Diff line number Diff line change
@@ -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
14 changes: 10 additions & 4 deletions .github/workflows/triage.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d24aebf

Please sign in to comment.