From 673344de6e5c929c97f71f62ca7660cd9b42975a Mon Sep 17 00:00:00 2001 From: Daniel Imhoff Date: Fri, 19 Jun 2020 10:18:34 -0700 Subject: [PATCH] chore(github): use config-based bot --- .github/bot.yml | 18 ++++++++++++++++++ .github/workflows/capacitor-bot.yml | 12 ++++-------- 2 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 .github/bot.yml diff --git a/.github/bot.yml b/.github/bot.yml new file mode 100644 index 000000000..7b1abb47d --- /dev/null +++ b/.github/bot.yml @@ -0,0 +1,18 @@ +tasks: + - name: remove-label + on: + issue_comment: + types: [created] + config: + label: needs-reply + exclude-labeler: true + - name: add-platform-labels + on: + issues: + types: [opened, edited] + - name: add-contributors + on: + push: + branches: [master] + config: + base: master diff --git a/.github/workflows/capacitor-bot.yml b/.github/workflows/capacitor-bot.yml index 17dcaadb1..107a97963 100644 --- a/.github/workflows/capacitor-bot.yml +++ b/.github/workflows/capacitor-bot.yml @@ -2,15 +2,11 @@ name: Capacitor Bot on: push: - branches: - - master + branches: [master] issues: - types: - - opened - - edited + types: [opened, edited] issue_comment: - types: - - created + types: [created] jobs: bot: @@ -18,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: ionic-team/bot@fea115086a25fc19b6775c70138bcbfe9557d5f6 + - uses: ionic-team/bot@main with: repo-token: ${{ secrets.BOT_TOKEN }} env: