From 7d82dcb47fc6979750df50f643eee54487796c80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Flamary?= Date: Tue, 10 Dec 2024 16:17:40 +0100 Subject: [PATCH] add leberler --- .github/labeler.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/build_tests.yml | 1 + .github/workflows/labeler.yml | 12 ++++++++++++ .yamllint.yml | 1 + 4 files changed, 43 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..2ef6e8293 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,29 @@ + +Documentation: +- changed-files: + - any-glob-to-any-file: docs/** + +Examples: +- changed-files: + - any-glob-to-any-file: examples/** + +Tests: +- changed-files: + - any-glob-to-any-file: test/** + +CI: +- changed-files: + - any-glob-to-any-file: .github/workflows/** + - any-glob-to-any-file: .circleci/** + +ot.bregman: +- changed-files: + - any-glob-to-any-file: ot/bergman/** + +ot.gromov: +- changed-files: + - any-glob-to-any-file: ot/gromov/** + +ot.unbalanced: +- changed-files: + - any-glob-to-any-file: ot/unbalanced/** \ No newline at end of file diff --git a/.github/workflows/build_tests.yml b/.github/workflows/build_tests.yml index c06994a1a..4356daa2b 100644 --- a/.github/workflows/build_tests.yml +++ b/.github/workflows/build_tests.yml @@ -39,6 +39,7 @@ jobs: pre-commit install --install-hooks pre-commit run --all-files + linux: runs-on: ubuntu-latest diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..e3ecf923f --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,12 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 \ No newline at end of file diff --git a/.yamllint.yml b/.yamllint.yml index e7c255105..e7c081ac9 100644 --- a/.yamllint.yml +++ b/.yamllint.yml @@ -4,6 +4,7 @@ ignore: | .github/workflows/*.yml .circleci/config.yml codecov.yml + .github/labeler.yml rules: line-length: disable