Commit Graph

1060 Commits

Author SHA1 Message Date
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. 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
Brandon Keepers
e5c0ee9680 Add plugin docs 2017-03-12 10:48:09 -05:00
Brandon Keepers
cb3a3c2d10 WIP: readme 2017-03-11 22:50:33 -06:00
Brandon Keepers
e66acd40a4 Support loading from script or module 2017-03-11 22:38:58 -06:00
Brandon Keepers
dfba43664a Remove unused fixtures 2017-03-11 16:04:30 -06:00
Brandon Keepers
ffbee1c16d The shell of a robot 2017-03-11 15:58:36 -06:00
Brandon Keepers
8e20741455 Merge pull request #88 from bkeepers/dotenv-safe
Use dotenv-safe
2017-03-11 09:24:50 -06:00
Brandon Keepers
f1511fcc17 Always load dotenv 2017-03-11 09:17:15 -06:00
Brandon Keepers
966ee288ca Use dotenv-safe if not in production 2017-03-11 08:20:28 -06:00