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
- 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
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
});
* master: (33 commits)
Simplify event filter logic
Move logic for filtering workflows
add label example
Remove reactions, which are not supported by integrations
Use installation id from webhook
Create robot module
Update github client library
Remove listening for invites
Move vm code into sandbox
GITHUB_TOKEN only needed for console
Log unhandled errors
Warn that reactions does not work
Update docs on running app locally
Ignore .env
Add debugging
Fix lint errors
Remove useless tests
Clean up installation implementation
Ignore priate-key.pem
Remove unused github api instance
...
* origin/master: (65 commits)
Move vm code into sandbox
Update docs
Look for config in .probot.js
Remove URL stuff for now
Use handlebars in comment templates
Remove unnecessary semicolon
Extract Sanbox class, remove workflows.push
Move evaluator to its own file
Remove unused modules
More style fixes
Fix style
Reimplement reactions
Implement unlock
Implement locking
Implement open
Implement unlabel
Implement unassign
Implement issue assignment
Implement comment test
Move label tests into plugin
...