From 8fca0e41b2242d3a35ae79b14768026052d32ffd Mon Sep 17 00:00:00 2001 From: Jide Date: Fri, 22 Nov 2024 16:25:24 +0000 Subject: [PATCH] yml update --- .github/labeler.yml | 136 ++++++++++++++++++++++++++---- .github/workflows/auto-assign.yml | 19 +++++ .github/workflows/auto-label.yml | 30 ++----- 3 files changed, 149 insertions(+), 36 deletions(-) create mode 100644 .github/workflows/auto-assign.yml diff --git a/.github/labeler.yml b/.github/labeler.yml index 649d4ac..62148a1 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,26 +1,132 @@ -# .github/labeler.yml - -# Label PRs touching C++ source files +# Labels for C++ source files cpp: - - 'src/**/*.cpp' - - 'ml_library_include/**/*.h' - - 'ml_library_include/**/*.hpp' + - "src/**/*.cpp" + - "ml_library_include/**/*.hpp" + - "ml_library_include/**/*.h" + +# Labels for headers and include files +headers: + - "ml_library_include/**/*.hpp" + - "ml_library_include/**/*.h" + +# Labels for Doxygen-specific documentation +doxygen: + - "Doxyfile" + - "docs/**/*.dox" + - "docs/doxygen/**/*" -# Label PRs touching documentation +# Labels for general documentation docs: - - 'docs/**/*' - - '**/*.md' + - "docs/**/*" + - "**/*.md" + - "README.md" + - "LICENSE" -# Label PRs touching tests +# Labels for test files tests: - - 'tests/**/*' + - "tests/**/*.cpp" + - "tests/**/*.hpp" + - "tests/data/**/*" -# Label PRs touching examples +# Labels for examples examples: - - 'examples/**/*' + - "examples/**/*.cpp" -# Label PRs touching GitHub workflows +# Labels for build-related files +build: + - "CMakeLists.txt" + - "build/**/*" + +# Labels for GitHub workflows ci: - - '.github/workflows/**/*' + - ".github/workflows/**/*" + +# Machine Learning Type Labels + +## Association Rule Learning +association-rule-learning: + - "src/association/**/*" + - "ml_library_include/ml/association/**/*" + - "examples/*AprioriExample.cpp" + - "examples/*EclatExample.cpp" + +## Clustering +clustering: + - "src/clustering/**/*" + - "ml_library_include/ml/clustering/**/*" + - "examples/*HierarchicalClusteringExample.cpp" + - "examples/*KMeansExample.cpp" + +## Neural Networks +neural-networks: + - "src/neural_network/**/*" + - "ml_library_include/ml/neural_network/**/*" + - "examples/*NeuralNetworkExample.cpp" + +## Regression +regression: + - "src/regression/**/*" + - "ml_library_include/ml/regression/**/*" + - "examples/*Regression*.cpp" + - "examples/*PolynomialRegressionExample.cpp" + - "examples/*SupportVectorRegressionExample.cpp" + - "examples/*MultilinearRegressionExample.cpp" + +## Decision Trees +decision-trees: + - "src/tree/**/*" + - "ml_library_include/ml/tree/**/*" + - "examples/*DecisionTreeExample.cpp" + - "examples/*RandomForestExample.cpp" + +# Labels for performance optimization +performance: + - "src/performance/**/*" + - "**/optimization/**/*" + +# Labels for dependencies or third-party files +dependencies: + - "third_party/**/*" + - "vendor/**/*" + - "**/external/**/*" + +# Labels for style and formatting +style: + - ".clang-format" + - ".editorconfig" + - "src/**/*.cpp" + - "ml_library_include/**/*.hpp" + +# Labels for configuration files +config: + - ".clang-format" + - ".editorconfig" + - "CMakeLists.txt" + +# Labels for refactoring +refactor: + - "**/refactor/**/*" + +# Labels for bug fixes +bug: + - "**/bug/**/*" + - "**/fix/**/*" + +# Labels for new features +feature: + - "**/feature/**/*" + - "src/feature/**/*" + +# Labels for experimental features +experimental: + - "src/experimental/**/*" + - "tests/experimental/**/*" +# Labels for data files +data: + - "tests/data/**/*" +# Labels for logging-related files +logging: + - "**/logging/**/*" + - "src/logging/**/*" diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml new file mode 100644 index 0000000..911498d --- /dev/null +++ b/.github/workflows/auto-assign.yml @@ -0,0 +1,19 @@ +name: Auto Assign +on: + issues: + types: [opened] + pull_request: + types: [opened] +jobs: + run: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - name: "Auto-assign issue" + uses: pozil/auto-assign-issue@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + assignees: jideoyelayo1 + numOfAssignee: 1 diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 619b6af..018b51b 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -1,27 +1,15 @@ -# .github/workflows/auto-label.yml - -name: Auto-Label PRs and Issues - +name: Auto Label on: - issues: - types: [opened] pull_request: - types: [opened] - -permissions: - contents: read - issues: write - pull-requests: write - + types: [opened, edited] + issues: + types: [opened, edited] jobs: auto-label: runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Auto-label - uses: actions/labeler@v3 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: Auto Label Issues and PRs + uses: actions/labeler@v4 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + configuration-path: .github/labeler.yml