diff --git a/.github/ionic-issue-bot.yml b/.github/ionic-issue-bot.yml index d3f7cbef25..9bf011ce4d 100644 --- a/.github/ionic-issue-bot.yml +++ b/.github/ionic-issue-bot.yml @@ -130,22 +130,6 @@ noReproduction: lock: true dryRun: false -labelPullRequest: - labels: - - label: "package: angular" - branch: master - path: ^angular - - label: "package: core" - branch: master - path: ^core - - label: "package: react" - branch: master - path: ^react - - label: "package: vue" - branch: master - path: ^vue - dryRun: false - wrongRepo: repos: - label: "ionitron: capacitor" diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..c39479e679 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,21 @@ +# This is used with the label workflow which +# will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# For more information, see: +# https://github.com/actions/labeler + +'package: core': + - core/**/* + +'package: angular': + - angular/**/* + - packages/angular-*/**/* + +'package: react': + - packages/react/**/* + - packages/react-*/**/* + +'package: vue': + - packages/vue/**/* + - packages/vue-*/**/* diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000000..0241c7fa5b --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,19 @@ +# 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: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@main + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true