From b292ebdd5d67932b54368f3841b2b32f0db8b664 Mon Sep 17 00:00:00 2001 From: Roushou <155655425+roushou@users.noreply.github.com> Date: Fri, 14 Jun 2024 01:43:36 +0700 Subject: [PATCH] feat: add pull request labeler (#540) --- .github/labeler.yml | 59 +++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 13 ++++++++ 2 files changed, 72 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 0000000000..f35c4ad51b --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,59 @@ +root: +- changed-files: + - any-glob-to-any-file: '*' + +framegear: +- changed-files: + - any-glob-to-any-file: framegear/** + +documentation: +- changed-files: + - any-glob-to-any-file: site/** + +'pkg: core': +- changed-files: + - any-glob-to-any-file: src/core/** + +'pkg: definitions': +- changed-files: + - any-glob-to-any-file: src/definitions/** + +'pkg: farcaster': +- changed-files: + - any-glob-to-any-file: src/farcaster/** + +'pkg: frame': +- changed-files: + - any-glob-to-any-file: src/frame/** + +'pkg: identity': +- changed-files: + - any-glob-to-any-file: src/identity/** + +'pkg: network': +- changed-files: + - any-glob-to-any-file: src/network/** + +'pkg: styles': +- changed-files: + - any-glob-to-any-file: src/styles/** + +'pkg: swap': +- changed-files: + - any-glob-to-any-file: src/swap/** + +'pkg: token': +- changed-files: + - any-glob-to-any-file: src/token/** + +'pkg: utils': +- changed-files: + - any-glob-to-any-file: src/utils/** + +'pkg: wallet': +- changed-files: + - any-glob-to-any-file: src/wallet/** + +'pkg: xmtp': +- changed-files: + - any-glob-to-any-file: src/xmtp/** diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..585f6acdeb --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,13 @@ +name: "Pull Request Labeler" +on: + pull_request: + branches: ['main'] + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5