Commit Graph

36 Commits

Author SHA1 Message Date
Brandon Keepers
c270752bc2 Add private key fixture 2018-10-07 11:47:52 -04:00
Bex Warner
3be935bcd2 httpSSSSSSS (#701) 2018-09-26 15:34:57 -04:00
Brandon Keepers
f6946a0607 Probot Support for GitHub App Manifests (#650)
* Add button to setup GitHub app

* Add app.yml

* Add some comments to app.yml

* Associate events with permissions

* Allow configuring app with manifest

* Hacky version of callback URL for configuring app

* Remove manifest stuff for now

* Return nil if private key is not found

* Move setup stuff to a separate plugin

* Revert changes to default plugin

* Remove FIXME

* Revert changes to default template

* Use separate template for setup

* Fix lint warnings

* Convert test helper to typescript

* Initial test for setup app

* Require tests files to match `.test.(js|ts)`

* Account for multiple protocols in x-forwarded-proto

* Wrap pem in quotes

* Collapse class into request method for now

* run `refresh` after updating .env on Glitch

* Extract update-dotenv to a node module

* Create a smee url if one does not exist

* Hacky version of serving up the manifest

* WIP Manifest with code

* add comments for plan + figure out port

* using user-agent header for review lab

* add success view to redirect to after installation

* api is actually on github

* start making post

* fix quoting issue on POST

* everything is off review lab and on dotcom

* working version of app manifest flow

* Start trying to write tests against setup

* more refactor into thingerator; basic tests; write plans for other tests

* merge better..

* ok atom conflict handling broke

* hack the tests back together

* pass the tests 👊🏼

* moar test

* make it open in a new tab for Wil 💖

* make boolean work

* clean up logic, move messgae, just return html url not response

* clean up tests 👷🏾‍♀️

* rename Brandon's thingerator to manifest-creation
2018-09-26 15:22:11 -04:00
Brandon Keepers
2efa0b24b7 chore: Rename robot to app (#542)
This replaces all internal references to "robot" with "app" or
"Application". There should be no functional change in public APIs, but
may cause some issues for anyone using internal APIs.
2018-06-01 17:45:23 -05: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
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
Bex Warner
6d37ad80da STANDARD LINT ALL OF THE THINGS 2017-08-22 20:06:31 -07:00
Bex Warner
eb0ebc603a moar typo 2017-08-21 16:20:40 -07:00
Brandon Keepers
9dabb532ca Rename plugin => app in docs 2017-08-20 10:42:51 -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
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
2ee252e0d1 Fixture for unsafe yaml test 2017-07-27 10:14:41 -05:00
Lee Dohm
24ef94f232 Add tests for .getPluginConfig 2017-05-13 20:19:22 -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
dfba43664a Remove unused fixtures 2017-03-11 16:04:30 -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
Brandon Keepers
74fbdeda6b Support deleting commit comments 2016-12-04 23:19:24 -06:00
Brandon Keepers
a8d73722a2 Merge remote-tracking branch 'origin/master' into integration
* 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
  ...
2016-11-18 14:51:23 -06:00
Brandon Keepers
0c237b4fce Look for config in .probot.js 2016-11-17 22:09:20 -06:00
Matt Colyer
09f0d7fa11 Add issues plugin test 2016-11-17 11:08:18 -08:00
Matt Colyer
9348b522c0 Fix configuration tests 2016-11-17 10:22:44 -08:00
Brandon Keepers
fb59548881 Implement negation 2016-11-03 20:33:24 -05:00
Brandon Keepers
6381f8e80b Add "is", "is not", and "contains" 2016-10-29 11:01:02 -05:00
Brandon Keepers
deb87a4589 Add matches operator and refactor 2016-10-29 08:18:29 -05:00
Brandon Keepers
bf03127fe8 Implement conditions 2016-10-23 23:19:00 -05:00
Brandon Keepers
9969849fde Merge remote-tracking branch 'origin/master' into integration
* origin/master: (34 commits)
  Update docs
  Fix lint error
  Add comment syntax
  "or" instead of "and"
  Add instruction to turn on verbose logging
  Update docs
  Fall back to generating parser at runtime
  Fix lint errrors
  Remove yaml dependency
  Use parser in place of yaml syntax
  Fix lint errors
  Behaviors are separated by a semicolon
  Separate events by 'and' instead of comma
  Implement 'then'
  Implement simple actions
  Implement "on" part of the syntax
  Add pegjs as a dev dep
  Document react action
  Remove 'why' section
  No longer aspirational
  ...
2016-10-19 23:48:19 -05:00
Brandon Keepers
66451ef3ee Use parser in place of yaml syntax 2016-10-18 00:03:55 -05:00
Brandon Keepers
d53e792f31 Begin implementing integrations support 2016-10-12 17:49:27 -05:00
Brandon Keepers
fbe55dbaf2 Remove autoresponder behavior 2016-10-10 10:18:36 -05:00
Brandon Keepers
a24316c7f0 Add support for event.action 2016-10-10 10:06:35 -05:00
Brandon Keepers
e6126e87cf behaviors 2016-10-10 00:04:45 -05:00
Brandon Keepers
5697ebc219 Add test for dispatch 2016-10-09 18:23:13 -05:00
Brandon Keepers
520ead83df Use mustache to evaluate templates 2016-10-09 17:37:07 -05:00
Brandon Keepers
93abe76ccc Add tests for autoresponder behavior 2016-09-16 11:22:37 -07:00