Commit Graph

184 Commits

Author SHA1 Message Date
Brandon Keepers
fdfbaeafac Update name from "GitHub Integrations" to "GitHub Apps" 2017-06-05 21:11:08 -05:00
Brandon Keepers
f84737861c Merge pull request #151 from probot/greenkeeper/github-integration-2.0.0
Update github-integration to the latest version 🚀
2017-06-05 19:35:48 -05:00
Brandon Keepers
9d47cc6423 Update to handle v9 response format 2017-06-04 09:27:48 -05:00
Brandon Keepers
53ee6421b3 Catch and log errors from plugins 2017-06-04 09:25:00 -05:00
Brandon Keepers
c9104d8b6f Tweak docs 2017-04-29 11:25:25 -05:00
Brandon Keepers
584c27acd1 Doc the logger 2017-04-29 09:35:36 -05:00
Brandon Keepers
00aff2385a Merge remote-tracking branch 'origin/master' into jsdoc
* origin/master: (45 commits)
  Fix lint errors
  Upate tests to handle async callback
  Update docs
  Pass an authenticated client to context
  Log unhandled rejections
  Find private key if it is not set
  add .js ext to files in bin/; closes #129
  add PRIVATE_KEY_PATH env var support; closes #122
  ensure "start" script runs from local directory
  enable autodiscovery of plugins; closes #99
  use function expressions in suite and test blocks
  Update filename
  Edits
  fix formatting
  Contents
  Heroku docs
  edits
  Release v0.4.1.
  Disable raven console alerts
  Relax node version requirements
  ...

# Conflicts:
#	docs/api.md
#	lib/context.js
#	lib/robot.js
#	package.json
2017-04-29 09:29:01 -05:00
Brandon Keepers
01432f9213 Pass an authenticated client to context 2017-04-29 07:57:24 -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
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
Brandon Keepers
e64f65a5fc Move logger setup to index 2017-04-08 12:05:26 -05:00
Brandon Keepers
7dbb707a9b Show trace for webhooks received 2017-04-06 08:50:22 -05:00
Brandon Keepers
e8aca83fc0 Update auth docs 2017-04-01 23:17:57 -05:00
Brandon Keepers
52917d346b Merge remote-tracking branch 'origin/master' into jsdoc
* origin/master: (21 commits)
  Update paginate to default to returning response
  capture unhandled rejections
  Fix lint errors
  Add raven to report errors to sentry
  Release v0.3.0.
  Change level of log message
  Start with array
  Use `function` to preserve `this`
  Add docs on paginate method
  Fix lint errors
  robot.auth as integration or installation
  Add paginate to default github client object
  Release v0.2.1.
  Hack to throttle requests
  Remove env variables
  Fix travis version
  Add cache and cache installation token
  a
  chore(package): update xo to version 0.19.0
  Clarify that it's the _webhook_ secret
  ...
2017-04-01 22:59:25 -05:00
Brandon Keepers
52d071d180 Update paginate to default to returning response 2017-04-01 12:10:14 -05:00
Brandon Keepers
d3d5e564dd Change level of log message 2017-03-31 05:38:54 -07:00
Brandon Keepers
4e2affbee4 Start with array 2017-03-30 16:43:15 -07:00
Brandon Keepers
35bf4017e8 Use function to preserve this 2017-03-30 16:31:49 -07:00
Brandon Keepers
1ae62eaa68 Fix lint errors 2017-03-30 15:50:13 -07:00
Brandon Keepers
5d8e229353 robot.auth as integration or installation 2017-03-30 15:00:37 -07:00
Lee Dohm
dbc48c14f5 Add paginate to default github client object 2017-03-30 14:29:32 -07:00
Brandon Keepers
f4eb189687 Hack to throttle requests 2017-03-28 00:03:07 -05:00
Brandon Keepers
530da8b31f Add cache and cache installation token 2017-03-27 22:13:17 -05:00
Brandon Keepers
73733b6aa5 Remove semicolon 2017-03-20 00:39:48 -05:00
Brandon Keepers
6af993ad1f Move API docs inline 2017-03-20 00:36:51 -05:00
Brandon Keepers
2b8aaf7384 Default to short log output 2017-03-19 11:51:22 -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
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
edef639e4c Add context.isBot 2017-03-13 08:02:20 -05:00
Brandon Keepers
05a939e8f2 Add robot.auth 2017-03-12 10:48:21 -05:00
Brandon Keepers
ffbee1c16d The shell of a robot 2017-03-11 15:58:36 -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
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
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
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
Brandon Keepers
c2ec31c425 Move GitHub Integration code to a module 2017-02-26 16:47:52 -06:00
Brandon Keepers
015a7f0580 Move server implementation to separate file 2017-02-24 20:28:50 -06:00
Michael Johnson
c8f5f24ccc Add labels and assignees 2017-01-24 12:35:36 -07:00
Michael Johnson
a0eda23611 Refactor createIssue for multiple arguments 2017-01-24 10:00:49 -07:00
Michael Johnson
6e41f77e20 Fix line splice bug 2017-01-23 09:55:05 -07:00
Michael Johnson
549b4ec316 add issue.create method 2017-01-12 06:55:17 -07:00
Brandon Keepers
9acfaba32b Include contents relative to repo source 2016-12-08 23:54:22 -06:00
Brandon Keepers
ec56779d37 Include relative to the current repo 2016-12-08 23:48:44 -06:00
Brandon Keepers
8be66d9bc4 Switch to bunyan for logging 2016-12-05 23:49:03 -06:00
Brandon Keepers
2352493d92 Fix error on push event 2016-12-05 21:28:23 -06:00
Brandon Keepers
80aedee988 Support for deleting pull request review comments 2016-12-04 23:29:24 -06:00