From 8938affe2f62a85edc842c278e3a38075665600f Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sat, 20 May 2023 10:58:45 +0300 Subject: [PATCH 1/2] Create label.yml --- .github/workflows/label.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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 000000000..461356907 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,22 @@ +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# To use this workflow, you will need to set up a .github/labeler.yml +# file with configuration. For more information, see: +# https://github.com/actions/labeler + +name: Labeler +on: [pull_request_target] + +jobs: + label: + + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" From dda06e49a5dad619dfcae3ed9f8ad43cd615d909 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sat, 20 May 2023 11:03:00 +0300 Subject: [PATCH 2/2] Configure labeler action --- .github/labeler.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..888821e8c --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,19 @@ +js: + - snippets/js/s/*.md + - collections/js/*.yaml +css: + - snippets/css/s/*.md + - collections/css/*.yaml +git: + - snippets/git/s/*.md + - collections/git/*.yaml +python: + - snippets/python/s/*.md + - collections/python/*.yaml +react: + - snippets/react/s/*.md + - collections/react/*.yaml +snippet: + - snippets/**/*.md +collection: + - collections/**/*.yaml