diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..935847b --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,13 @@ +docs: + - "docs/**" + - "README.md" + - "README-*.md" + +tests: + - "tests/**" + +ci: + - ".github/**" + - ".pre-commit-config.yaml" + - ".readthedocs.yaml" + - "codedev.yml" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..62da9d5 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,17 @@ +name: "Pull Request Labeler" + +on: + - pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + configuration-path: .github/labeler.yml + sync-labels: true