From 8506cb8871b4f2444833ce8ff5990f09c1a9e42a 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 | 10 ++++++++++ .github/workflows/labeler.yml | 18 ++++++++++++++++++ 2 files changed, 28 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..41812624db --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,10 @@ +bug: + - "**/*.py" # Match all Python files globally (if any are present) + +feature: + - "**/*.js" # Match all JavaScript files globally (if any) + +documentation: + - "**/*.md" # Match all Markdown files + - "documentation/**" # Match everything in the 'documentation' folder + - "docs/**" # Match everything in the 'docs' folder diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..8b1b52e0be --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,18 @@ +name: "Pull Request Labeler" + +on: + pull_request: + types: [opened, synchronize, reopened] + +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 }}"