From 1aedac7edd653d95f5ce890fd347023520aeec8f Mon Sep 17 00:00:00 2001 From: Ayush khatri Date: Wed, 18 Dec 2024 08:19:25 +0530 Subject: [PATCH] Add GitHub Actions workflow for automatic labeling --- .github/labeler.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 21 +++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..edb38d143b --- /dev/null +++ b/.github/labeler.yml @@ -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" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..fb66b33aef --- /dev/null +++ b/.github/workflows/labeler.yml @@ -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"