From 0e1b0971d6632511b6d8339998858c2fdbe0caa0 Mon Sep 17 00:00:00 2001 From: roushou Date: Sun, 23 Jun 2024 14:33:48 +0700 Subject: [PATCH] ci: add pull request labeler workflow --- .github/labeler.yml | 19 +++++++++++++++++++ .github/workflows/labeler.yml | 14 ++++++++++++++ 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 0000000..4a29f9e --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,19 @@ +examples: +- changed-files: + - any-glob-to-any-file: examples/** + +'pkg: commerce': +- changed-files: + - any-glob-to-any-file: packages/commerce/** + +'pkg: onchain': +- changed-files: + - any-glob-to-any-file: packages/onchain/** + +'pkg: paymaster': +- changed-files: + - any-glob-to-any-file: packages/paymaster/** + +'pkg: utils': +- changed-files: + - any-glob-to-any-file: packages/utils/** diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..62bb189 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,14 @@ +name: "Pull Request Labeler" + +on: + pull_request: + - main + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5