Skip to content

Commit 78e11de

Browse files
authored
Create label.yml
Auto Label new PRs
1 parent 2632b2c commit 78e11de

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/label.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# yaml-language-server: $schema=https://github.com/SchemaStore/schemastore/raw/master/src/schemas/json/github-workflow.json
2+
3+
# This workflow will triage PRs and apply a label based on the paths that are modified in the PR.
4+
#
5+
# To use this workflow, you will need to set up a .github/labeler.yml: https://github.com/actions/labeler
6+
7+
name: "PR Labeler"
8+
on: [pull_request_target]
9+
10+
jobs:
11+
labeler:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
pull-requests: write
16+
17+
steps:
18+
- id: label-the-PR
19+
uses: actions/labeler@v5
20+
with:
21+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
22+
23+
# - id: run-frontend-tests
24+
# if: contains(steps.label-the-PR.outputs.all-labels, 'tests')
25+
# run: |
26+
# echo "Running tests..."
27+
# # Put your commands for running tests here

0 commit comments

Comments
 (0)