diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..dd8462d62 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,9 @@ +# Config file for workflows/labelling.yml + +version: 1 + +labels: +- label: "dependencies" + authors: ["dependabot", "pre-commit-ci"] +- label: "code quality ✨" + authors: ["pre-commit-ci"] diff --git a/.github/workflows/labelling.yml b/.github/workflows/labelling.yml new file mode 100644 index 000000000..4512d2e1f --- /dev/null +++ b/.github/workflows/labelling.yml @@ -0,0 +1,17 @@ +name: PR Labeler + +on: + pull_request: + types: [opened] + +jobs: + pre-commit-ci: + permissions: + contents: read # for srvaroa/labeler to read config file + pull-requests: write # for srvaroa/labeler to add labels in PR + runs-on: ubuntu-latest + steps: + - uses: srvaroa/labeler@v1.5.0 + # Config file at .github/labeler.yml + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"