From 388272335cc08774adc17bd779f3671d63a072b3 Mon Sep 17 00:00:00 2001 From: Thomas J Fan Date: Fri, 21 Feb 2020 16:09:58 -0500 Subject: [PATCH 1/6] MNT Adds labeler --- .github/labeler.yml | 83 +++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 11 +++++ 2 files changed, 94 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 0000000000000..44b12ce226d79 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,83 @@ +module:cluster: +- sklearn/cluster/**/* + +module:common: +- sklearn/common/**/* + +module:compose: +- sklearn/compose/**/* + +module:covariance: +- sklearn/covariance/**/* + +module:cross_decomposition: +- sklearn/cross_decomposition/**/* + +module:datasets: +- sklearn/datasets/**/* + +module:decomposition: +- sklearn/decomposition/**/* + +module:ensemble: +- sklearn/ensemble/**/* + +module:feature_extraction: +- sklearn/feature_extraction/**/* + +module:feature_selection: +- sklearn/feature_selection/**/* + +module:gaussian_process: +- sklearn/gaussian_process/**/* + +module:impute: +- sklearn/impute/**/* + +module:inspection: +- sklearn/inspection/**/* + +module:linear_model: +- sklearn/linear_model/**/* + +module:manifold: +- sklearn/manifold/**/* + +module:metrics: +- sklearn/metrics/**/* + +module:mixture: +- sklearn/mixture/**/* + +module:model_selection: +- sklearn/model_selection/**/* + +module:naive_bayes: +- sklearn/naive_bayes + +module:neighbors: +- sklearn/neighbors/**/* + +module:neural_network: +- sklearn/neural_network/**/* + +module:neural_network: +- sklearn/neural_network/**/* + +module:pipeline: +- sklearn/pipeline + +module:preprocessing: +- sklearn/preprocessing/**/* + +module:semi_supervised: +- sklearn/semi_supervised/**/* + +module:svm: +- sklearn/svm/**/* + +module:tree: +- sklearn/tree/**/* + +module:utils: +- sklearn/utils/**/* diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000000..dcafb97dc984a --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,11 @@ +name: "Pull Request Labeler" +on: +- pull_request + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v2 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" From d79390b80896b45045227ba899f55aa57d493608 Mon Sep 17 00:00:00 2001 From: Thomas J Fan Date: Fri, 21 Feb 2020 16:10:54 -0500 Subject: [PATCH 2/6] BUG Fix --- .github/labeler.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 44b12ce226d79..43772955c2eb7 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -53,7 +53,7 @@ module:model_selection: - sklearn/model_selection/**/* module:naive_bayes: -- sklearn/naive_bayes +- sklearn/naive_bayes.py module:neighbors: - sklearn/neighbors/**/* @@ -65,7 +65,7 @@ module:neural_network: - sklearn/neural_network/**/* module:pipeline: -- sklearn/pipeline +- sklearn/pipeline.py module:preprocessing: - sklearn/preprocessing/**/* From d71ecae304dfa81008e574f6fa78e8e441089bfa Mon Sep 17 00:00:00 2001 From: Thomas J Fan Date: Fri, 21 Feb 2020 16:15:20 -0500 Subject: [PATCH 3/6] Double quotes are better --- sklearn/cluster/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/cluster/setup.py b/sklearn/cluster/setup.py index 48ed25c5c0eaf..e233654ce80d6 100644 --- a/sklearn/cluster/setup.py +++ b/sklearn/cluster/setup.py @@ -25,7 +25,7 @@ def configuration(parent_package='', top_path=None): include_dirs=[numpy.get_include()], libraries=libraries) - config.add_extension('_k_means_fast', + config.add_extension("_k_means_fast", sources=['_k_means_fast.pyx'], include_dirs=[numpy.get_include()], libraries=libraries) From a89754c3d6c089bc6c186d57530a552a549c368d Mon Sep 17 00:00:00 2001 From: Thomas J Fan Date: Fri, 21 Feb 2020 16:20:18 -0500 Subject: [PATCH 4/6] BUG Fix --- .github/labeler.yml | 3 --- sklearn/cluster/setup.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 43772955c2eb7..faf2acdc2e9db 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -61,9 +61,6 @@ module:neighbors: module:neural_network: - sklearn/neural_network/**/* -module:neural_network: -- sklearn/neural_network/**/* - module:pipeline: - sklearn/pipeline.py diff --git a/sklearn/cluster/setup.py b/sklearn/cluster/setup.py index e233654ce80d6..48ed25c5c0eaf 100644 --- a/sklearn/cluster/setup.py +++ b/sklearn/cluster/setup.py @@ -25,7 +25,7 @@ def configuration(parent_package='', top_path=None): include_dirs=[numpy.get_include()], libraries=libraries) - config.add_extension("_k_means_fast", + config.add_extension('_k_means_fast', sources=['_k_means_fast.pyx'], include_dirs=[numpy.get_include()], libraries=libraries) From 0f56d963b1eb21d2570bcf1c79dbeb217d6ec5b9 Mon Sep 17 00:00:00 2001 From: Thomas J Fan Date: Fri, 21 Feb 2020 16:26:33 -0500 Subject: [PATCH 5/6] MNT Adds build ci tag --- .github/labeler.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/labeler.yml b/.github/labeler.yml index faf2acdc2e9db..107f94627cb13 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -78,3 +78,11 @@ module:tree: module:utils: - sklearn/utils/**/* + +Build / CI: +- build_tools/**/* +- .github/**/* +- maint_tools/**/* +- azure-pipelines.yml +- .travis.yml +- pyproject.toml From e4ee673c64bd754392b28c57e5777aa462b41a6f Mon Sep 17 00:00:00 2001 From: Thomas J Fan Date: Sat, 22 Feb 2020 13:45:45 -0500 Subject: [PATCH 6/6] MNT Use fork for new feature --- .github/workflows/labeler.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index dcafb97dc984a..65ea75b1e7ad5 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -6,6 +6,7 @@ jobs: triage: runs-on: ubuntu-latest steps: - - uses: actions/labeler@v2 + - uses: thomasjpfan/labeler@master with: repo-token: "${{ secrets.GITHUB_TOKEN }}" + max-labels: '3'