271 Commits

Author SHA1 Message Date
SaravanaN
3c7a6e6e33 fix: update log when server starts #394 (#398) 2018-01-15 10:30:28 -05:00
Wilhelm Klopp
dcd0e32c3c Add option to disable stats (#392) 2018-01-12 08:20:25 -06:00
Brandon Keepers
a3c91afdf3 Properly handle async errors (#384) 2018-01-12 08:10:10 -06:00
Brandon Keepers
b71b2a0135 Remove localtunnel (#387) 2018-01-11 21:51:39 -06:00
Brandon Keepers
0b527178eb Use smee-client instead of EventSource directly (#389) 2018-01-11 21:39:50 -06:00
Ryan Tsao
36e3b57b41 feature: Add early termination to paginate method (#329) 2018-01-11 13:16:44 -05:00
Brandon Keepers
6aa3a2f7b2 feat: Add support for experimental webhook proxy (#359)
Usage:

    $ WEBHOOK_PROXY_URL=http://github-webhook-proxy.herokuapp.com/abcxyz npm start
2017-12-07 12:30:18 -06:00
Jason Etcovitch
92c5c52e66 Implement GHE Support (#331)
* Add GHE_URL host option to GitHubApi

* Absorb github-app repo

* Implement new github-app setup

* Basic tests for GHE support

* Add docs

* Switch GHE_URL for GHE_HOST

* Make the tests pass by moving things

* Fix sentry test
2017-11-30 13:02:58 -05:00
Brandon Keepers
27b7c8d406 refactor: Extract Sentry logging to a built-in plugin (#353) 2017-11-27 20:57:52 -06:00
Brandon Keepers
b4751760ec Log full requests as trace (#352) 2017-11-27 20:52:30 -06:00
Brandon Keepers
e35028890a Improve GitHub logging (#351)
* Extract github client extensions into module

* Add logging to extended GitHub client

* Update test to check output

* Inline GitHub App methods

* Update node-github links

* Remove src, which does not show up with LOG_FORMAT=simple anyway

* Fix lint errors
2017-11-27 10:18:58 -06:00
Jamie Jones
a7596e24d2 General cleanup (#350)
* re-order args for `bin/probot-run.js`
 - Local tunnel/internal properties are grouped together and appear first
  - GitHub App args are now grouped together and come second

* standardize on block comment spacing in `lib/robot.js`
  - open comment is flush
  - all subsequent lines are indented by 1-space
2017-11-26 21:42:04 -05:00
Brandon Keepers
1e2551853e feat: Add request/response logging (#322)
BREAKING CHANGE:
- Default log level is now `INFO` instead of `DEBUG`
2017-11-25 22:16:54 -06:00
Brandon Keepers
b5d05b3913 fix: Improve log messages for localtunnel (#349) 2017-11-25 22:03:31 -06:00
Brandon Keepers
c5a0c5956c Add context.log to add event context to each log message (#321)
* Add logger on context.log

* Update robot.log instances in docs

* Add more event context
2017-11-21 12:31:55 -06:00
Jason Etcovitch
9eeac3a57e refactor: switch ejs for hbs 2017-11-21 09:21:39 -05:00
Brandon Keepers
f8abe25d83 fix: Move unhandled rejection listener to cli scripts (#339) 2017-11-20 21:32:56 -06:00
Brandon Keepers
62e984c123 chore: Move index.js into lib/ (#338) 2017-11-20 21:13:18 -06:00
Jason Etcovitch
374ee7dd04 refactor: absorb github-app 2017-11-20 00:11:33 -05:00
Olivier Combe
f508dfa2cb fix: use posix join for context.config to fix issue on Windows (#311) 2017-11-02 08:09:56 -05:00
Olivier Combe
833a34e62b fix: use lowercase username for localtunnel (#310) 2017-10-31 07:57:05 -05:00
Jason Etcovitch
5d29945dd2 feat: /probot homepage (#279)
* Add /probot route with tests

* Add index route, write tests

* Remove unused arg

* Pass tests

* Tweak HTML string and pkg require

* Add static directory

* Design welcome page

* Rename to probot.html

* Implement EJS

* Remove duplicate load

* Extract default homepage into plugin

* Fix issue after merge conflict

* Refactor app loading

* Remove autoloading of plugings

BREAKING CHANGE: `probot run` without any arguments will no longer autoload apps named `probot-*`.

* Move setup

* Look for `apps` key instead of `plugins`

* Update simulate command

* Simplify resolver

* Remove unused routes variable

* Move views to default path

* Call probot.setup to properly initialize default apps

* Simplify package loading

* Specify extension

* Add links to docs/slack

* Remove stats link

* Add helper to jest ignore

* Fix ejs views error

* Move a require to top of file

* Remove unnecessary (and breaking) test
2017-10-17 09:35:58 -04:00
Brandon Keepers
dda5df88d8 Refactor app loading (#284)
BREAKING CHANGE: `probot run` without any arguments will no longer autoload apps named `probot-*`.
2017-10-14 05:25:02 -07:00
Bex Warner
1227ef9d3b removes unnecessary eslint disables 2017-10-12 14:12:39 -07:00
Brandon Keepers
6d8ddaf3f7 feat: Expose public stats about installations (#181) 2017-10-11 21:09:13 -07:00
Jed Fox
1e7d4a6a40 Move note for robot.log before the @example
Currently, the note is shown as part of the example.
2017-10-04 17:00:05 -04:00
JasonEtco
2749894847 Lint JS in examples 2017-09-20 19:38:26 -04:00
Jason Etcovitch
f23194f0d0 Whitespace 2017-09-20 08:40:03 -04:00
Jason Etcovitch
1446daeaf0 Add @example for using defaultConfig 2017-09-20 08:34:02 -04:00
Brandon Keepers
e93555397e Remove deprecated event argument for callback 2017-08-24 15:57:13 -05:00
Brandon Keepers
07c9dd46ae Merge pull request #212 from wilhelmklopp/master
Multiple events per robot.on()
2017-08-24 15:49:27 -05:00
Wilhelm Klopp
aaa8e294e9 Fix lint error by removing semicolons 2017-08-24 14:46:01 +01:00
Wilhelm Klopp
940769717e Recursively deal with arrays passed to robot.on() 2017-08-24 14:34:56 +01:00
Brandon Keepers
9f6003d5e0 Merge branch 'master' into sentry_docs 2017-08-24 08:34:35 -05:00
Brandon Keepers
771bbbab91 Merge remote-tracking branch 'origin/master' into plugin-to-app
* origin/master:
  maximize cat gifage
  create new error instead of eslint disable
  confirmed my localdev is is 😵
  tetsing if a standard error fails on CI
  STANDARD LINT ALL OF THE THINGS
  update plugin usage
  Add support for update-docs and new-issue-welcome
2017-08-24 08:24:26 -05:00
Wilhelm Klopp
a720b7962b Add support for multiple events per robot.on() 2017-08-24 13:24:16 +01:00
Bex Warner
08dbb4102d confirmed my localdev is is 😵 2017-08-23 08:47:03 -07:00
Bex Warner
6fad2c4f39 tetsing if a standard error fails on CI 2017-08-23 08:44:14 -07:00
Bex Warner
6d37ad80da STANDARD LINT ALL OF THE THINGS 2017-08-22 20:06:31 -07:00
Brandon Keepers
729e698fae Remove "plugin" from log messages 2017-08-22 20:42:03 -05:00
Brandon Keepers
34e8bddfdd Merge remote-tracking branch 'origin/master' into plugin-to-app
* origin/master:
  The Slack chat channel on the Internet machine
  Clean up link to slack channel
  Add link to slack channel
  Adds a line break
  add test to ensure deprecation occurs
  add version for deprecation to console.warn and inline comment
  it's on the same tab
  annoying space 💢
  bot -> app
  0 -> 1 silly markdown
  Create CONTRIBUTING.md
  Add linter extend to package.json
  clarify REST API
  use settings.yml
  Update development.md
  Fix urls to example apps
  Fix link to example GitHub profile
  Bumps webhook dep and adds webhookPath config
2017-08-22 18:29:44 -05:00
Bex Warner
fa4ecbcc4e add version for deprecation to console.warn and inline comment
Signed-off-by: Bex Warner <hiimbex@github.com>
2017-08-22 10:10:07 -07:00
Brandon Keepers
9dabb532ca Rename plugin => app in docs 2017-08-20 10:42:51 -05:00
Bex Warner
493602eae0 typo 2017-08-13 19:55:25 -07:00
Jason Etcovitch
75d24ddfa1 Return defaultConfig 2017-08-09 15:06:15 -07:00
Brandon Keepers
e9964cb7f8 Add test for event serializer and fix cause of error 2017-08-09 15:03:40 -05:00
Brandon Keepers
e423400cf9 Return null if config is not found 2017-08-09 09:10:48 -05:00
Brandon Keepers
7ab28d3edf Reduce auth token ttl
...to 1 min less than GitHub expiry
2017-08-09 00:55:38 -05:00
Brandon Keepers
a531a09e86 Log the event with errors to aid debugging 2017-08-09 00:49:21 -05:00
anglinb
a0c2467915 Adds sentry documentation and moves SENTRY_URL to SENTRY_DSN 2017-08-07 15:26:51 -07:00