Skip to content

Commit

Permalink
ci: update pr labeller workflow syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Aug 5, 2024
1 parent 680be72 commit e7d5d27
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 15 deletions.
42 changes: 28 additions & 14 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .github/workflows/pr_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit e7d5d27

Please sign in to comment.