From 83429b1587d2fd30177e7fca77481868126ea11b Mon Sep 17 00:00:00 2001 From: efb4f5ff-1298-471a-8973-3d47447115dc <73130443+efb4f5ff-1298-471a-8973-3d47447115dc@users.noreply.github.com> Date: Sun, 2 Oct 2022 00:13:45 +0000 Subject: [PATCH] Label new PR's (#2653) * Create labeler.yml * Create label-pr.yml * updated condition of labeling pr * add dependecies label for dependecies files --- .github/labeler.yml | 19 +++++++++++++++++++ .github/workflows/label-pr.yml | 15 +++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/label-pr.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..dff087046 --- /dev/null +++ b/.github/labeler.yml @@ -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' diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml new file mode 100644 index 000000000..492a3ab71 --- /dev/null +++ b/.github/workflows/label-pr.yml @@ -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 }}"