From e7d5d2706f9fcc47ce210eeea6037bc087d25bd7 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Mon, 5 Aug 2024 19:31:21 +0100 Subject: [PATCH] ci: update pr labeller workflow syntax --- .github/labeler.yml | 42 ++++++++++++++++++++++------------ .github/workflows/pr_label.yml | 2 +- 2 files changed, 29 insertions(+), 15 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 08a3fea..7833834 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,14 +1,28 @@ -"devops": - - ".github/**/*" - - "Dockerfile" - - "*entrypoint.sh" - - "Makefile" -"dependency": - - "pyproject.toml" - - "pdm.lock" -"documentation": - - "docs/**/*" - - "mkdocs.yml" - - "README.md" -"version": - - "osm_rawdata/__version__.py" +bug: + # Branch starts with `fix` or has a `fix` in the name + - head-branch: ["^fix", "fix"] +enhancement: + - head-branch: + ["^feature", "feature", "^feat", "feat", "^refactor", "refactor"] +devops: + - changed-files: + - any-glob-to-any-file: + - .github/** + - Dockerfile + - ./*entrypoint.sh + - Makefile +dependency: + - changed-files: + - any-glob-to-any-file: + - pyproject.toml + - pdm.lock +docs: + - changed-files: + - any-glob-to-any-file: + - docs/** + - mkdocs.yml + - ./*entrypoint.sh + - README.md +version: + - changed-files: + - any-glob-to-any-file: osm_rawdata/__version__.py diff --git a/.github/workflows/pr_label.yml b/.github/workflows/pr_label.yml index 1e5a389..16f50d3 100644 --- a/.github/workflows/pr_label.yml +++ b/.github/workflows/pr_label.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/labeler@v4 + - uses: actions/labeler@v5 # Uses .github/labeler.yml definitions with: repo-token: ${{ secrets.GITHUB_TOKEN }}