Skip to content

Commit

Permalink
chore(github): add capacitor community bot support (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
IT-MikeS committed Jun 30, 2020
1 parent a9d003e commit aedb2ed
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
tasks:
- name: remove-label
on:
issue_comment:
types: [created]
config:
label: "needs reply"
exclude-labeler: true
24 changes: 24 additions & 0 deletions .github/workflows/capacitor-community-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Capacitor Community Bot

on:
push:
branches: [master]
issues:
types: [opened, edited]
issue_comment:
types: [created]

jobs:
bot:
name: ${{ github.event_name }}/${{ github.event.action }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ionic-team/bot@main
with:
repo-token: ${{ secrets.BOT_TOKEN }}
env:
GIT_AUTHOR_NAME: Capacitor Community Bot
GIT_AUTHOR_EMAIL: hi@ionicframework.com
GIT_COMMITTER_NAME: Capacitor Community Bot
GIT_COMMITTER_EMAIL: hi@ionicframework.com
20 changes: 20 additions & 0 deletions .github/workflows/needs-reply.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Close old proposals that need more information

on:
schedule:
- cron: "0 0 * * *"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Close old proposals that need more information
uses: dwieeb/needs-reply@v1
with:
repo-token: ${{ secrets.BOT_TOKEN }}
issue-label: "needs reply"
close-message: |
It looks like this proposal didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot.
Have a great day!
Capacitor Community Bot 💙

0 comments on commit aedb2ed

Please sign in to comment.