Skip to content

Commit

Permalink
Add GitHub Actions workflow for automatic labeling
Browse files Browse the repository at this point in the history
  • Loading branch information
AyushKhatri-Dev committed Dec 18, 2024
1 parent 02412af commit 1aedac7
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"Documentation":
- "**/*.md"
- "docs/**/*"

"Bug":
- "**/*.py"
- "src/**/*.py"

"Frontend":
- "**/*.html"
- "**/*.css"
- "**/*.js"

"Backend":
- "api/**/*.py"

"Tests":
- "**/tests/**"
- "**/*.spec.js"

"CI/CD":
- ".github/workflows/*.yml"

"Dependencies":
- "package.json"
- "requirements.txt"

"Feature":
- "features/**/*"
- "**/*.feature"
21 changes: 21 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Labeler"

on:
pull_request:
types: [opened, synchronize, reopened]
issues:
types: [opened]

jobs:
label:
runs-on: ubuntu-latest

steps:
- name: "Checkout Code"
uses: actions/checkout@v4

- name: "Run Labeler Action"
uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: ".github/labeler.yml"

0 comments on commit 1aedac7

Please sign in to comment.