Commit Graph

418 Commits

Author SHA1 Message Date
Brandon Keepers 8291867879
Remove env variables 2017-03-27 22:22:59 -05:00
Brandon Keepers 97c7180d87
Fix travis version 2017-03-27 22:20:52 -05:00
Brandon Keepers 530da8b31f
Add cache and cache installation token 2017-03-27 22:13:17 -05:00
Brandon Keepers c0d8f4d112 Fix formatting 2017-03-20 10:35:41 -05:00
Brandon Keepers 7dfd119664 Merge pull request #104 from probot/moar-docs
Doc updates
2017-03-19 23:20:44 -05:00
Brandon Keepers 6ac5b45464
Start of deploy docs 2017-03-19 23:19:09 -05:00
Brandon Keepers 989586b293
Update plugin docs 2017-03-19 23:19:09 -05:00
Brandon Keepers c3d80ea256
Tweak README 2017-03-19 23:19:09 -05:00
Brandon Keepers e11927dfcd
Add API docs 2017-03-19 23:19:09 -05:00
Brandon Keepers 7316dae28a
Update development docs 2017-03-19 23:19:08 -05:00
Brandon Keepers 57d5ef5862
Release v0.2.0. 2017-03-19 14:35:33 -05:00
Brandon Keepers a4eff36b4a Merge pull request #103 from probot/greenkeeper/initial
Update dependencies to enable Greenkeeper 🌴
2017-03-19 13:45:03 -05:00
Brandon Keepers 0c13f270a9
Merge remote-tracking branch 'origin/master' into greenkeeper/initial
* origin/master:
  Remove workflow demo
  Stick with PRIVATE_KEY
  Look for private-key.pem
  Default to short log output
  probot run
  Update plugin docs
  Still support PRIVATE_KEY env var
  Use commander for CLI
2017-03-19 13:43:19 -05:00
Brandon Keepers 56079928fb
Remove workflow demo
Moved to https://github.com/probot/workflow/blob/master/docs/demo.js
2017-03-19 13:41:58 -05:00
Brandon Keepers 4ee13ae156 Remove badge 2017-03-19 13:39:04 -05:00
Brandon Keepers 31f5045181 Merge pull request #102 from probot/cli
Use commander for CLI
2017-03-19 12:03:00 -05:00
greenkeeper[bot] ebc2f844da docs(readme): add Greenkeeper badge
https://greenkeeper.io/
2017-03-19 17:01:37 +00:00
greenkeeper[bot] 464b977197 chore(package): update dependencies
https://greenkeeper.io/
2017-03-19 17:01:34 +00:00
Brandon Keepers e8639cb172
Stick with PRIVATE_KEY 2017-03-19 11:58:12 -05:00
Brandon Keepers f39c2f6259
Look for private-key.pem 2017-03-19 11:51:45 -05:00
Brandon Keepers 2b8aaf7384
Default to short log output 2017-03-19 11:51:22 -05:00
Brandon Keepers fc1d1078c2
probot run 2017-03-18 12:46:11 -05:00
Brandon Keepers 5ba0d012c6
Update plugin docs 2017-03-18 12:42:11 -05:00
Brandon Keepers e472931c02
Still support PRIVATE_KEY env var 2017-03-18 12:42:02 -05:00
Brandon Keepers 89e3310582
Use commander for CLI 2017-03-17 21:04:23 -07:00
Brandon Keepers 6888f45ff3 Merge pull request #95 from sridharavinash/dont-crash-on-bad-webhook
Dont crash on bad webhook
2017-03-14 23:26:42 -05:00
Avinash Sridhar 9412b63c95 Merge branch 'master' into dont-crash-on-bad-webhook 2017-03-14 20:53:06 -04:00
Avinash Sridhar 05049822df
Use webhook error message to catch and log error
Removed the domain check. Now this fails with the a valid web hook
error but does not crash the server
2017-03-14 20:51:01 -04:00
Brandon Keepers 298275faf1 Merge pull request #96 from probot/log
Add shorthand for `robot.log`
2017-03-14 18:56:47 -05:00
Brandon Keepers 3687f99db1
Add docs on logging 2017-03-14 17:49:09 -05:00
Brandon Keepers fc7d8a6693
Add shorthand for robot.log
robot.log("debug");
    robot.log.trace("Now we're talking");
    robot.log.info("I thought you should know…");
    robot.log.warn("Woah there");
    robot.log.error("ETOOMANYLOGS");
    robot.log.fatal("Goodbye, cruel world!");
2017-03-14 17:37:27 -05:00
Brandon Keepers a30463817e Merge pull request #92 from sridharavinash/dot-env-load-catch-error
Error message without stack trace on dotenv-safe load
2017-03-14 17:11:15 -05:00
Brandon Keepers 8295f51de5
Move dotenv loading to bin 2017-03-14 16:58:50 -05:00
Avinash Sridhar 251b38fbeb
fix semicolon for test 2017-03-14 14:01:25 -04:00
Avinash Sridhar 0e275b6aed
Don't kill server if web hook domain is null
The server dies when the web hook is not a valid web hook. For now I’ve
resorted to testing `webhook.domain` with null, but not sure if that ’s
the right approach. This keeps the server running even if a unexpected
web hook is received.
2017-03-14 14:01:10 -04:00
Avinash Sridhar 631797e10f
fixing failing tests
fixing some of the missing semicolon tests.
Also removed the process.exit(1) from index.js since this should be
handled in a CLI app like `probot.js`
2017-03-14 13:53:47 -04:00
Brandon Keepers b0445f2439
Merge remote-tracking branch 'origin/master' into sridharavinash-dot-env-load-catch-error
* origin/master:
  Update all the docs
  Debug
  More updates to docs
  Add context.isBot
  Update package name
  Edits
  Remove old documentation
  Add robot.auth
  Add plugin docs
  WIP: readme
  Support loading from script or module
  Remove unused fixtures
  The shell of a robot
2017-03-14 09:59:59 -05:00
Brandon Keepers 3ee74d50d1 Update syntax 2017-03-14 09:52:26 -05:00
Avinash Sridhar 1e9a717789
Error message without stack on dot-env load
`require dotenv-safe` throws a  stack trace when it has missing
variables. This PR is an attempt to catch the error and only print the
`error.message` and exit.
2017-03-14 00:14:32 -04:00
Brandon Keepers 117863f69c Merge pull request #90 from probot/wild-wild-west
Reboot part 1: bot framework
2017-03-13 22:27:33 -05:00
Brandon Keepers c01224333d
Update all the docs 2017-03-13 22:26:59 -05:00
Brandon Keepers 3f0171d0a2
Debug 2017-03-13 16:13:21 -05:00
Brandon Keepers e4be8fcbad Merge pull request #91 from sridharavinash/bootstrap-posix-compliant
Fix POSIX compliance on bootstrap
2017-03-13 13:42:54 -05:00
Avinash Sridhar c48789de75
Fix POSIX compliance on bootstrap
`./script/bootstrap`  was failing on linux

```
./script/bootstrap: 8: ./script/bootstrap: [[: not found
```
Fixed by using POSIX compliant `[` instead of `[[`
2017-03-13 14:16:24 -04:00
Brandon Keepers 780b7970bb
More updates to docs 2017-03-13 10:38:42 -05:00
Brandon Keepers edef639e4c
Add context.isBot 2017-03-13 08:02:20 -05:00
Brandon Keepers 9cc93e77f5
Update package name 2017-03-12 11:13:31 -05:00
Brandon Keepers a44116eb36
Edits 2017-03-12 10:54:31 -05:00
Brandon Keepers 75c30f6002
Remove old documentation 2017-03-12 10:51:00 -05:00
Brandon Keepers 05a939e8f2
Add robot.auth 2017-03-12 10:48:21 -05:00