From f8c842d4e94d1a99fe5d3c9e533e12db9ad092a8 Mon Sep 17 00:00:00 2001 From: Dadmehr <134191240+BDadmehr0@users.noreply.github.com> Date: Mon, 18 Nov 2024 18:28:58 +0000 Subject: [PATCH 1/4] Create labeler.yml --- .github/workflows/labeler.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/labeler.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..0fac2a2 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,21 @@ +name: "Issue and PR Labeler" + +on: + pull_request: + types: [opened, synchronized, edited] + issues: + types: [opened, edited] + +jobs: + label: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Run Labeler + uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: .github/labeler.yml From b48c1d2acadf79f16bf41073ead179863b28cab1 Mon Sep 17 00:00:00 2001 From: Dadmehr <134191240+BDadmehr0@users.noreply.github.com> Date: Mon, 18 Nov 2024 18:30:14 +0000 Subject: [PATCH 2/4] Create labeler.yml - Issues or pull requests with changes in `src/**/*.js` and `*.html` will get the `bug` label. - Changes in `docs/**` and `*.md` will get the `documentation` label. - Changes in `features/**` will get the `enhancement` label. --- .github/labeler.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..fa918ed --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,11 @@ +# Automatically label based on file paths +bug: + - "src/**/*.js" + - "*.html" + +documentation: + - "docs/**" + - "*.md" + +enhancement: + - "features/**" From 38b280e4da5c657c9cbb06d6d66eafad54368d00 Mon Sep 17 00:00:00 2001 From: Dadmehr <134191240+BDadmehr0@users.noreply.github.com> Date: Mon, 18 Nov 2024 18:36:38 +0000 Subject: [PATCH 3/4] Better config --- .github/labeler.yml | 77 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 72 insertions(+), 5 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index fa918ed..22f98d2 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,11 +1,78 @@ -# Automatically label based on file paths -bug: - - "src/**/*.js" - - "*.html" +# --------------------------- +# Labels based on file paths +# --------------------------- +frontend: + - "src/frontend/**" + - "*.css" + - "*.js" + +backend: + - "src/backend/**" + - "*.py" + - "*.java" + +database: + - "db/**" + - "*.sql" + +tests: + - "tests/**" + - "*.test.js" + - "*.spec.py" documentation: - "docs/**" - "*.md" + - "README.md" +# --------------------------- +# Labels based on keywords +# --------------------------- +bug: + - "error" + - "bug" + - "failed" + - "unexpected" enhancement: - - "features/**" + - "feature" + - "enhance" + - "improvement" + - "upgrade" +documentation: + - "docs" + - "readme" + - "manual" + +# --------------------------- +# Labels based on types +# --------------------------- +type/bug: + - "*.bugfix" +type/feature: + - "*.feature" +type/refactor: + - "*.refactor" + +# --------------------------- +# Labels based on priority +# --------------------------- +priority/high: + - "**/critical/**" +priority/medium: + - "**/important/**" +priority/low: + - "**/optional/**" + +# --------------------------- +# Labels based on status +# --------------------------- +status/in-progress: + - "WIP" + - "work in progress" + - "incomplete" +status/review: + - "needs review" + - "review required" +status/done: + - "completed" + - "finished" From 0320823a44c49233b5bf4dc636d4eefdf1379883 Mon Sep 17 00:00:00 2001 From: Dadmehr <134191240+BDadmehr0@users.noreply.github.com> Date: Tue, 19 Nov 2024 15:12:40 +0000 Subject: [PATCH 4/4] Add label .html, .sh, .bash, Makefile --- .github/labeler.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/labeler.yml b/.github/labeler.yml index 22f98d2..5215386 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -5,11 +5,15 @@ frontend: - "src/frontend/**" - "*.css" - "*.js" + - "*.html" backend: - "src/backend/**" - "*.py" - "*.java" + - "*.sh" + - "*.bash" + - "Makefile" database: - "db/**"