Bex Warner
3ec28ada3e
fix deprecation test
2017-08-06 21:08:21 -07:00
Brandon Keepers
89891394ff
Merge pull request #183 from probot/express
...
Use Express for the web server and allow plugins add routes
2017-08-03 20:06:39 -05:00
Brandon Keepers
99d3af7485
Fix use of logger
2017-08-03 19:18:14 -05:00
anglinb
17f382dfae
Fixes loading pluigns on the express branch
2017-08-03 19:15:54 -05:00
Brandon Keepers
2ea6a5419b
Restore robot method and mark as deprecated
2017-08-03 19:11:43 -05:00
Jason Etcovitch
6ecafc12c8
Pass defaultConfig object to context.config
2017-08-03 14:56:03 -07:00
Brandon Keepers
fa6136cdcd
Add test and fix receive method
2017-08-01 20:05:50 -05:00
Brandon Keepers
849a86b208
Add robot.route() method
2017-08-01 16:32:01 -05:00
Brandon Keepers
4961e0f692
Create a separate robot for each plugin
2017-08-01 15:26:09 -05:00
Brandon Keepers
d17d9b717b
Create a new router for the robot
2017-08-01 14:13:11 -05:00
Brandon Keepers
767c852553
Use express for http server
2017-08-01 14:12:09 -05:00
Brandon Keepers
0a44d52191
Move test helper to block where it is used
2017-07-27 10:48:45 -05:00
Brandon Keepers
93ff9f99c5
Update API response format to include data attribute
2017-07-27 10:47:41 -05:00
Brandon Keepers
2ee252e0d1
Fixture for unsafe yaml test
2017-07-27 10:14:41 -05:00
Brandon Keepers
81694fa5cd
Use safeLoad for untrusted yaml
2017-07-27 10:04:59 -05:00
Brandon Keepers
794064f242
Move config method to context
2017-07-27 09:37:31 -05:00
Brandon Keepers
f21679a303
Merge remote-tracking branch 'origin/master' into read-config
...
* origin/master: (79 commits)
Fix typo
Add nodemon option to development docs
Document event simulation
document tailing logs on heroku
Use commander for simulate command
Use receive api to deliver event
Add simulate as a subcommand
Rename simulate script and fix lint errors
Update LICENSE
0.7.5
chore(CHANGELOG): 0.7.5
fix: allow to set PRIVATE_KEY with "\\n" characters
test: allow to set PRIVATE_KEY with "\\n" characters
Don't capitalize npm
0.7.4
Update CHANGLEOG for 0.7.4
Fix bug introduced in 0.7.3
Consolidate Robot tests
Fix changelog for 0.7.3 release
0.7.3
...
2017-07-27 08:11:06 -05:00
Gregor
04b448b7ee
test: allow to set PRIVATE_KEY with "\\n" characters
2017-07-13 08:07:53 -07:00
Brandon Keepers
201a58a878
Fix bug introduced in 0.7.3
2017-06-30 15:54:46 -05:00
Brandon Keepers
85cd707c01
Consolidate Robot tests
2017-06-30 15:45:00 -05:00
Brandon Keepers
6d574deb4e
Raise errors by default
...
Disable by passing `catchErrors: true` to Robot
2017-06-30 14:07:41 -05:00
Brandon Keepers
1cc4505792
Raise errors in tests
2017-06-30 14:01:01 -05:00
Brandon Keepers
b4d946f92b
Wait for async events to resolve before returning
2017-06-30 12:34:23 -05:00
Brandon Keepers
98f12419e6
Fix lint errors
2017-06-30 12:19:15 -05:00
Brandon Keepers
61be74e3d4
Test with taking an argument and not
2017-06-30 12:18:52 -05:00
Brandon Keepers
fe876d846c
Ensure * event still works
2017-06-30 11:12:08 -05:00
Brandon Keepers
0e38027092
Make Robot self-sustaining
...
Instead of passing in the webhook handler, this adds an EventEmitter on Robot so it can do its own event handling.
2017-06-30 11:06:06 -05:00
Brandon Keepers
aa3146b18f
Allow creating robot without a logger
2017-06-30 10:34:25 -05:00
Brandon Keepers
9dd1afd696
Test for manually delivering events
2017-06-27 12:49:54 -04:00
Brandon Keepers
91c1472f34
Failing test to show issue with Context
2017-06-16 11:10:47 -07:00
Brandon Keepers
b65d239772
Merge event and context arguments
2017-06-11 17:31:47 -05:00
Brandon Keepers
fdfbaeafac
Update name from "GitHub Integrations" to "GitHub Apps"
2017-06-05 21:11:08 -05:00
Brandon Keepers
53ee6421b3
Catch and log errors from plugins
2017-06-04 09:25:00 -05:00
Lee Dohm
12e65f27b0
Add missing assignment
2017-05-15 09:57:08 -07:00
Lee Dohm
24ef94f232
Add tests for .getPluginConfig
2017-05-13 20:19:22 -07:00
Brandon Keepers
16aa76d7ec
Fix lint errors
2017-04-29 09:18:18 -05:00
Brandon Keepers
cb7a418ce2
Upate tests to handle async callback
2017-04-29 09:14:31 -05:00
Christopher Hiller
0f14bf3499
add PRIVATE_KEY_PATH env var support; closes #122
...
The loading preference is:
1. CLI flag
2. `PRIVATE_KEY`
3. `PRIVATE_KEY_PATH`
4. Find a `.pem` file in the current working dir
Changes:
- break out PK loading logic into module `lib/private-key.js`
- add more info to error messaging if probot fails to find a PK
- add tests
- add note to deployment docs
2017-04-24 23:02:48 -07:00
Brandon Keepers
f639dfc30d
Merge pull request #123 from boneskull/issue/99
...
enable autodiscovery of plugins; closes #99
2017-04-17 06:14:28 -05:00
Christopher Hiller
8b858aaa64
enable autodiscovery of plugins; closes #99
...
- new behavior: if no plugins are specified, then they are automatically discovered. if plugins are specified, no autodiscovery happens
- a plugin is defined as a module whose name begins with the prefix `probot-`
- move plugin loading/resolving routines into module
- add tests
2017-04-17 01:59:03 -07:00
Christopher Hiller
387b0b5e28
use function expressions in suite and test blocks
...
When writing Mocha tests, the blocks should be function expressions instead of lambdas. The reasoning is that it's easier to refactor if a test needs a custom timeout, or needs to be conditionally skipped:
it('should do x', () => {
this.skip(); // throws exception
});
it('should do x', function () {
this.skip(); // ok
});
2017-04-17 01:53:56 -07:00
Brandon Keepers
e64f65a5fc
Move logger setup to index
2017-04-08 12:05:26 -05: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
Lee Dohm
e4aac40b2b
Add Context.halt() function to make halting a rule simple
2017-03-02 10:08:41 -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