Commit Graph

642 Commits

Author SHA1 Message Date
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
Brandon Keepers 45762c4874
Rename .env.sample to .env.example 2017-03-11 08:20:02 -06:00
Brandon Keepers 5347692cfa Merge pull request #74 from bkeepers/demo
Update installation instructions to include demo script
2017-03-11 08:09:50 -06:00
Brandon Keepers 1ba24b11f6
Merge remote-tracking branch 'origin/master' into demo
* origin/master: (25 commits)
  Add Context.halt() function to make halting a rule simple
  Update examples
  💚 Update integration tests
  Stop using const because state was leaking between tests
  🎨
  Add a bunch of Workflow tests
  Add specs for Filter.on()
  Add Filter plugin
  Remove payload module
  Move GitHub Integration code to a module
  Rename server.js to index.js
  Move server implementation to separate file
  typo
  Clean up docs
  Revert "Add routing plugin"
  Move requires to avoid circular dependencies
  Add documentation for createIssue
  Fix syntax errors
  Add labels and assignees
  Add routing plugin
  ...

# Conflicts:
#	package.json
2017-03-11 07:59:22 -06:00
Brandon Keepers 3142422e02
Tweak deleted message 2017-03-11 07:58:22 -06:00
Brandon Keepers 0e4c2d8117
Ingore comments from all bot users 2017-03-11 07:58:15 -06:00
Brandon Keepers 4362fc118d Merge pull request #83 from bkeepers/refactor-2
Extract GitHub Integration code
2017-03-11 07:53:11 -06:00
Brandon Keepers eb4ef38099 Merge pull request #86 from lee-dohm/filter-as-plugin
Make filter into a plugin
2017-03-08 08:16:03 -06:00
Lee Dohm e4aac40b2b
Add Context.halt() function to make halting a rule simple 2017-03-02 10:08:41 -08:00
Lee Dohm 48b5b3f8ba
Update examples 2017-03-01 13:37:01 -08:00
Lee Dohm 62883caeea
💚 Update integration tests 2017-03-01 13:32:08 -08:00
Lee Dohm 43a00624c2
Stop using const because state was leaking between tests 2017-03-01 13:03:25 -08:00
Lee Dohm 0d63f324ba
🎨 2017-02-28 18:17:58 -08:00
Lee Dohm 1f59fb06a7
Add a bunch of Workflow tests 2017-02-28 16:20:50 -08:00
Lee Dohm bb6909bcf2
Add specs for Filter.on() 2017-02-28 14:33:54 -08:00
Lee Dohm 735b545ee6
Add Filter plugin 2017-02-28 13:30:54 -08:00
Brandon Keepers e59402eb34 Merge pull request #84 from bkeepers/remove-payload
Remove payload module
2017-02-27 15:07:18 -06:00
Brandon Keepers 49c808d354
Remove payload module 2017-02-26 16:58:41 -06:00
Brandon Keepers a22025dbba Merge pull request #82 from bkeepers/refactor-1
Refactor server into separate module
2017-02-26 16:53:51 -06:00