Skip to content

Commit

Permalink
ci: add automatic pr labelling
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Oct 10, 2023
1 parent 874b226 commit 1814edc
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"frontend":
- "src/frontend/**/*"
"backend":
- "src/backend/**/*"
"devops":
- ".github/**/*"
- "scripts/**/*"
- "docker-*.yml"
- "**/Dockerfile"
- "**/*.dockerfile"
- "josm/**/*"
"documentation":
- "docs/**/*"
- "images/**/*"
- "mkdocs.yml"
- "README.md"
- "INSTALL.md"
"ODK":
- "odkcentral/**/*"
14 changes: 14 additions & 0 deletions .github/workflows/pr_label.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml → .github/workflows/pr_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR
name: PR Tests

on:
pull_request:
Expand Down

0 comments on commit 1814edc

Please sign in to comment.