Skip to content

yml update #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
136 changes: 121 additions & 15 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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/**/*"
19 changes: 19 additions & 0 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
@@ -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
30 changes: 9 additions & 21 deletions .github/workflows/auto-label.yml
Original file line number Diff line number Diff line change
@@ -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