Skip to content

Commit

Permalink
Merge pull request #128 from ut-ras/auto-label-needs-testing
Browse files Browse the repository at this point in the history
Auto label relevant PRs with `needs-testing` when modified
  • Loading branch information
calebchalmers authored May 26, 2024
2 parents 58b21ca + adce229 commit 93142ec
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
needs-testing:
- changed-files:
- any-glob-to-any-file: 'ut-robomaster/src/**'
12 changes: 12 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
2 changes: 1 addition & 1 deletion .github/workflows/needs-testing.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Tested on hardware
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
types: [labeled, unlabeled]
jobs:
label:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 93142ec

Please sign in to comment.