From 78e11de3a0c09897c9ac2cf8b9e07ea4135d3fb4 Mon Sep 17 00:00:00 2001 From: Velocet Date: Fri, 26 Apr 2024 03:39:40 +0200 Subject: [PATCH] Create label.yml Auto Label new PRs --- .github/workflows/label.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/label.yml diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000..f7e6e6e --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,27 @@ +# yaml-language-server: $schema=https://github.com/SchemaStore/schemastore/raw/master/src/schemas/json/github-workflow.json + +# This workflow will triage PRs and apply a label based on the paths that are modified in the PR. +# +# To use this workflow, you will need to set up a .github/labeler.yml: https://github.com/actions/labeler + +name: "PR Labeler" +on: [pull_request_target] + +jobs: + labeler: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - id: label-the-PR + uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + +# - id: run-frontend-tests +# if: contains(steps.label-the-PR.outputs.all-labels, 'tests') +# run: | +# echo "Running tests..." +# # Put your commands for running tests here