252 Commits

Author SHA1 Message Date
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
Brandon Keepers
231f87a047 Update API docs for context.config 2017-08-04 11:32:01 -05: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
anglinb
17f382dfae Fixes loading pluigns on the express branch 2017-08-03 19:15:54 -05:00
Jason Etcovitch
6ecafc12c8 Pass defaultConfig object to context.config 2017-08-03 14:56:03 -07:00
Brandon Keepers
5bea838e33 Add jsdoc on robot.route 2017-08-01 23:13:38 -05:00
Brandon Keepers
849a86b208 Add robot.route() method 2017-08-01 16:32:01 -05:00
Brandon Keepers
d17d9b717b Create a new router for the robot 2017-08-01 14:13:11 -05:00
Brandon Keepers
74e59724b8 Add router on robot 2017-08-01 14:13:05 -05:00
Brandon Keepers
767c852553 Use express for http server 2017-08-01 14:12:09 -05:00
Brandon Keepers
93ff9f99c5 Update API response format to include data attribute 2017-07-27 10:47:41 -05:00
Brandon Keepers
1d5da34153 Tweak docs 2017-07-27 10:26:52 -05:00
Brandon Keepers
0d41954c3a Add example in doc, link from best practices 2017-07-27 10:16:19 -05:00
Brandon Keepers
81694fa5cd Use safeLoad for untrusted yaml 2017-07-27 10:04:59 -05:00
Brandon Keepers
b70e6af7b1 Update API docs 2017-07-27 09:43:18 -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
7408fcb1f0 fix: allow to set PRIVATE_KEY with "\\n" characters 2017-07-13 08:07:57 -07: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