This repo contain code for bitbucket PR reminder bot implemented using Flock incoming webhook API.
- Deno 1.x
- Bitbucket account
- Flock account
- Create Bitbucket app password, using guide here
- Create Flock incoming webhook, using guide here
- Please note password & webhook id as you need that on
.env
# clone repo
$ git clone https://github.com/dels07/pr-reminder-flock.git
$ cd pr-reminder-flock
# copy .env, please modify according to your config
$ cp .env.example .env
# install velociraptor
$ deno install -qAn vr https://deno.land/x/[email protected]/cli.ts
$ vr
# run
$ vr start
# for development
$ vr dev
You can attach vscode debugger when in development
Assuming that you already registered in Heroku and you can link your github account to Heroku
- Fork this repo to your personal github account
- Go to heroku dashboard
- Create a new project by clicking
New -> Create new app
- Select a name for project, can be anything
- In your new project, go to
Settings
- In
Config Vars
section, you need to add environment variables from.env.example
- In
Buildpack
section, you need to add custom buildpack https://github.com/chibat/heroku-buildpack-deno - After all setup complete you can try to deploy your project in
Deploy
section
If you prefer not to link your github account and use cli to deploy, remember to modify environment values in app.json
# install heroku cli
$ brew install heroku
# heroku login, using browser
$ heroku login
# create a new project using custom buildpack
$ heroku apps:create --buildpack https://github.com/chibat/heroku-buildpack-deno.git pr-reminder-flock
# deploy
$ heroku git:remote --app pr-reminder-flock
# redeploy, after commit
$ git push heroku master