Label new PR's (#2653)

* Create labeler.yml

* Create label-pr.yml

* updated condition of labeling pr

* add dependecies label for dependecies files
This commit is contained in:
efb4f5ff-1298-471a-8973-3d47447115dc 2022-10-02 00:13:45 +00:00 committed by GitHub
parent dc2cc746cf
commit 83429b1587
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

19
.github/labeler.yml vendored Normal file
View File

@ -0,0 +1,19 @@
'PR: waiting for review':
- '*'
- '.babelrc'
- '.editorconfig'
- '.eslintignore'
- '.eslintrc.js'
- '.gitignore'
- '.prettierrc'
- '.whitesource'
- '.github/**/*'
- '.vscode/**/*'
- '_icons/**/*'
- '_scripts/**/*'
- 'src/**/*'
- 'static/**/*'
'PR: dependencies':
- 'yarn.lock'
- 'package.json'

15
.github/workflows/label-pr.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: "Pull Request Labeler"
on:
pull_request_target:
types: [opened, reopened]
jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"