diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..d8c367a1 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,3 @@ +needs-testing: +- changed-files: + - any-glob-to-any-file: 'ut-robomaster/src/**' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..e57cd86e --- /dev/null +++ b/.github/workflows/labeler.yml @@ -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 diff --git a/.github/workflows/needs-testing.yml b/.github/workflows/needs-testing.yml index afcecc9e..fa86f5dd 100644 --- a/.github/workflows/needs-testing.yml +++ b/.github/workflows/needs-testing.yml @@ -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