From edc338b37a83d372cacb67170a21a9921ecf1104 Mon Sep 17 00:00:00 2001 From: Adams Pierre David <57180807+adamspd@users.noreply.github.com> Date: Sun, 4 Feb 2024 19:05:08 +0100 Subject: [PATCH 1/3] Updated labeler --- .github/labeler.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 6f981c3..75488f7 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -7,8 +7,11 @@ documentation: dependencies: - requirements.txt -enhancement: -- "**" +publishing: +- check_version.py +- setup.py +- MANIFEST.in +- setup.cfg github-actions: - ".github/**/*" @@ -25,3 +28,21 @@ training: - "spam_detector_ai/classifiers/**/*" - "spam_detector_ai/prediction/**/*" - "spam_detector_ai/loading_and_processing/**/*" + +feature: +- head-branch: ['^feature', 'feature'] + +bug: +- head-branch: ['^bug', 'bug'] + +fix: +- head-branch: ['^fix', 'fix'] + +bugfix: +- head-branch: ['^bugfix', 'bugfix'] + +chore: +- head-branch: ['^chore', 'chore'] + +maintenance: +- head-branch: ['^maintenance', 'maintenance'] From 7303845a2644d177f338323b1ccdea2c3d102e82 Mon Sep 17 00:00:00 2001 From: Adams Pierre David <57180807+adamspd@users.noreply.github.com> Date: Sun, 4 Feb 2024 19:08:56 +0100 Subject: [PATCH 2/3] Testing fix --- .github/labeler.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 75488f7..52b51d9 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -28,21 +28,3 @@ training: - "spam_detector_ai/classifiers/**/*" - "spam_detector_ai/prediction/**/*" - "spam_detector_ai/loading_and_processing/**/*" - -feature: -- head-branch: ['^feature', 'feature'] - -bug: -- head-branch: ['^bug', 'bug'] - -fix: -- head-branch: ['^fix', 'fix'] - -bugfix: -- head-branch: ['^bugfix', 'bugfix'] - -chore: -- head-branch: ['^chore', 'chore'] - -maintenance: -- head-branch: ['^maintenance', 'maintenance'] From be7dead968b692737ca3efb305345ce598d5ec6b Mon Sep 17 00:00:00 2001 From: Adams Pierre David <57180807+adamspd@users.noreply.github.com> Date: Sun, 4 Feb 2024 19:18:47 +0100 Subject: [PATCH 3/3] Following documentation for labeler version 5 --- .github/labeler.yml | 67 +++++++++++++++++++++++++++++++++------------ 1 file changed, 50 insertions(+), 17 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 52b51d9..02b5c13 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,30 +1,63 @@ documentation: -- "**/*.md" -- LICENSE -- "docs/**/*" -- "screenshots/**/*" +- changed-files: + - any-glob-to-any-file: + - "**/*.md" + - LICENSE + - "docs/**/*" + - "screenshots/**/*" dependencies: -- requirements.txt +- changed-files: + - any-glob-to-any-file: + - requirements.txt + - requirements-dev.txt publishing: -- check_version.py -- setup.py -- MANIFEST.in -- setup.cfg +- changed-files: + - any-glob-to-any-file: + - check_version.py + - setup.py + - MANIFEST.in + - setup.cfg github-actions: -- ".github/**/*" +- changed-files: + - any-glob-to-any-file: + - ".github/**/*" tests: -- "spam_detector_ai/test_and_tuning/**/*" +- changed-files: + - any-glob-to-any-file: + - "spam_detector_ai/test_and_tuning/**/*" models: -- "spam_detector_ai/models/**/*" +- changed-files: + - any-glob-to-any-file: + - "spam_detector_ai/models/**/*" training: -- "spam_detector_ai/training/**/*" -- "spam_detector_ai/data/**/*" -- "spam_detector_ai/classifiers/**/*" -- "spam_detector_ai/prediction/**/*" -- "spam_detector_ai/loading_and_processing/**/*" +- changed-files: + - any-glob-to-any-file: + - "spam_detector_ai/training/**/*" + - "spam_detector_ai/data/**/*" + - "spam_detector_ai/classifiers/**/*" + - "spam_detector_ai/prediction/**/*" + - "spam_detector_ai/loading_and_processing/**/*" + +feature: +- head-branch: ['^feature', 'feature'] + +bug: +- head-branch: ['^bug', 'bug'] + +fix: +- head-branch: ['^fix', 'fix'] + +bugfix: +- head-branch: ['^bugfix', 'bugfix'] + +chore: +- head-branch: ['^chore', 'chore'] + +maintenance: +- head-branch: ['^maintenance', 'maintenance'] \ No newline at end of file