From 42e83d7f99254c16e408f52848b914f7aa264372 Mon Sep 17 00:00:00 2001 From: vladislav doster Date: Sun, 10 Apr 2022 22:37:58 -0500 Subject: [PATCH] feat: add PR labeler to show what parts of Zinit are changed (#211) Signed-off-by: Vladislav Doster --- .github/labeler.yml | 15 +++++++++++++++ .github/workflows/labeler.yml | 18 ++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..a0721c27 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,15 @@ +# Add 'zinit` label to any change in a zinit file +zinit: +- zinit*.zsh +# Add 'scripts` label to any change in scripts/ directory +scripts: +- scripts/* +# Add 'docs` label to any change in docs/ directory +docs: +- docs/* +# Add 'tests` label to any change in tests/ directory +tests: +- tests/* +ci/cd: +- .github/* +- .github/**/* diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..105483f7 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,18 @@ +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. + +name: Labeler +on: [pull_request] + +jobs: + label: + + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"