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 }}"