From eb8f9d695368ad2c1ff513db0aa918349b7dceaf Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Tue, 10 Oct 2023 14:36:15 +0100 Subject: [PATCH] ci: add pr auto-labelling workflow --- .github/labeler.yml | 13 +++++++++++++ .github/workflows/pr_label.yml | 14 ++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/pr_label.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..6fb2493 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,13 @@ +"devops": + - ".github/**/*" + - "Dockerfile" + - "pyproject.toml" + - "pdm.lock" + - "*entrypoint.sh" + - "Makefile" +"documentation": + - "docs/**/*" + - "mkdocs.yml" + - "README.md" +"version": + - "fmtm_splitter/__version__.py" diff --git a/.github/workflows/pr_label.yml b/.github/workflows/pr_label.yml new file mode 100644 index 0000000..61f1a57 --- /dev/null +++ b/.github/workflows/pr_label.yml @@ -0,0 +1,14 @@ +name: PR Label + +on: + pull_request: + +jobs: + pr-label: + runs-on: ubuntu-latest + + steps: + - uses: actions/labeler@v3 + # Uses .github/labeler.yml definitions + with: + repo-token: ${{ secrets.GITHUB_TOKEN }}