Skip to content
🤖 A simple bot to automate awesome-list related tasks for the Awesome MobX List
Shell JavaScript Batchfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__
docs
src
.env.example
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
acorn
acorn.cmd
babylon
babylon.cmd
bunyan
bunyan.cmd
errno
errno.cmd
escodegen
escodegen.cmd
esgenerate
esgenerate.cmd
eslint
eslint.cmd
esparse
esparse.cmd
esvalidate
esvalidate.cmd
handlebars
handlebars.cmd
index.js
is-ci
is-ci.cmd
jest
jest-runtime
jest-runtime.cmd
jest.cmd
js-yaml
js-yaml.cmd
jsesc
jsesc.cmd
json5
json5.cmd
loose-envify
loose-envify.cmd
mime
mime.cmd
mkdirp
mkdirp.cmd
ncp
ncp.cmd
now.json
package.json
probot
probot.cmd
raven
raven.cmd
rimraf
rimraf.cmd
sane
sane.cmd
semver
semver.cmd
shjs
shjs.cmd
smee
smee.cmd
sshpk-conv
sshpk-conv.cmd
sshpk-sign
sshpk-sign.cmd
sshpk-verify
sshpk-verify.cmd
standard
standard.cmd
uglifyjs
uglifyjs.cmd
uuid
uuid.cmd
watch
watch.cmd
which
which.cmd
yarn.lock

README.md

awesome-mobx-bot

a GitHub App built with probot that automates awesome-list related tasks for the Awesome MobX List

Setup

# See below to configure the environment variables as needed

# Install dependencies
yarn install

# Run the bot (in local development)
yarn run dev

# Run the bot (in production)
yarn start

Configuring

The following environment variables are needed to run the bot:

  • APP_ID: Your GitHub App ID
  • Private key
    • PRIVATE_KEY_PATH: Path to your GitHub-provided Private Key (recommended for local development)
    • PRIVATE_KEY: String form of your GitHub-provided Private Key (recommended for production on Now.sh)
  • WEBHOOK_PROXY_URL: A URL provided by smee.io (for development only)
  • WEBHOOK_SECRET: Secret set in your GitHub App settings

Testing

Simulating webhooks

# Pick a fixture and action, then sub in here
probot simulate issues __tests__/fixtures/issue_link_primitive.json index.js

Deployment

Configure now by adding secrets:

now secrets add mobxbot-webhook-secret <SECRET_GOES_HERE>
now secrets add mobxbot-private-key "$(cat private-key*.pem | base64)"

# Finally deploy the app
now
now alias

See docs/deploy.md if you would like to run your own instance of this app.

You can’t perform that action at this time.