Commit Graph

63 Commits

Author SHA1 Message Date
jamesgeorge007 804f62be0e feat: configure update-notifier 2020-01-06 10:10:36 -08:00
James George 4fdcde33a1 chore: minor code refactoring (#1103)
* refactor: minor tweak

* chore: revert
2020-01-05 08:31:45 -08:00
James George e0d3072751 fix(cli): fixup invalid args validation (#1099) 2020-01-02 15:56:57 +01:00
jamesgeorge007 f368013729 feat: warn on passing in unknown commands 2019-12-25 10:36:04 +01:00
Alberto Gimeno bd42feba23 feat: standalone run command (#751) 2019-03-08 11:17:52 -08:00
Gregor 57587b83b8 fix: remove deprecated "simulate" command
BREAKING CHANGE: `probot simulate` hase been removed, use `probot receive` instead
2019-03-08 11:16:59 -08:00
Gregor 0a3c828ff9 style: standard 2019-03-08 11:16:59 -08:00
Josh Soref 444fcac73d fix: Spelling (#800) 2019-01-03 12:15:02 -05:00
KINOSHITA Minoru 15fbadca2d fix: path.resolve instead of path.join to resolve payload paths. (#785) 2019-01-02 13:45:42 -08:00
Alberto Gimeno 7831ef0c4d Fix for `probot receive` to allow app auth instead in addition to token auth (#754) 2018-11-02 11:14:25 -05:00
Alberto Gimeno ad06bd5e32 Deprecate `probot simulate` in favor of `probot receive` (#726) 2018-10-15 11:21:36 -07: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
Jason Etcovitch e030579aa6
Remove all remnants of localtunnel (#644) 2018-08-03 12:35:28 -04:00
Brandon Keepers 59046bb7d8
chore: Extract type declarations for @octokit/webhooks (#626) 2018-07-17 14:38:04 -05:00
Tommy Byrd d2fe925e1a chore: Rewrite core in Typescript (#372) 2018-05-25 15:17:19 -05:00
Brandon Keepers b71b2a0135
Remove localtunnel (#387) 2018-01-11 21:51:39 -06: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
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 b5d05b3913
fix: Improve log messages for localtunnel (#349) 2017-11-25 22:03:31 -06:00
Brandon Keepers f8abe25d83
fix: Move unhandled rejection listener to cli scripts (#339) 2017-11-20 21:32:56 -06: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
Brandon Keepers 672ebd7915
Add ENV variable to disable tunnel 2017-09-20 12:23:09 +02: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
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
Brandon Keepers 675b99a32d
Fix overzealous find/replace 2017-08-21 14:43:05 -05:00
Brandon Keepers 9dabb532ca
Rename plugin => app in docs 2017-08-20 10:42:51 -05:00
anglinb d8b42674fd Bumps webhook dep and adds webhookPath config 2017-08-13 19:31:58 -07:00
Jamie Jones 828deba2e8 remove deprecated integration id
Integration id was set to be removed in 0.7. We're past that version, so cleaning up the deprecated option.
2017-08-05 13:45:05 -04:00
Brandon Keepers 99d3af7485
Fix use of logger 2017-08-03 19:18:14 -05:00
anglinb 17f382dfae
Fixes loading pluigns on the express branch 2017-08-03 19:15:54 -05:00
Brandon Keepers bed7346781
Use commander for simulate command 2017-07-18 20:32:19 +02:00
Brandon Keepers 332ee97bce
Use receive api to deliver event 2017-07-18 20:29:12 +02:00
Brandon Keepers f2103fded6
Add simulate as a subcommand 2017-07-18 20:09:57 +02:00
Brandon Keepers afa1a91921
Rename simulate script and fix lint errors 2017-07-18 20:09:17 +02:00
Brandon Keepers 18bd6644f0
Merge remote-tracking branch 'origin/master' into simulate
* origin/master: (65 commits)
  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
  Update changelog
  Raise errors by default
  Raise errors in tests
  Wait for async events to resolve before returning
  Fix lint errors
  Expose method to create robot
  Test with taking an argument and not
  Ensure * event still works
  Make Robot self-sustaining
  Allow creating robot without a logger
  Fix typo
  Move default secret so it works for programatic uses
  Test for manually delivering events
  Define receive method for manually delivering events
  ...
2017-07-18 20:05:34 +02:00
Brandon Keepers 0078c31523
Move default secret so it works for programatic uses 2017-06-27 12:50:21 -04:00
Katrina Owen fe2ad5da12 Fix typo in deprecation warning
The deprecation warning boiled down to: APP_ID is deprecated, set APP_ID instead.
The deprecated environment variable is named INTEGRATION_ID.
2017-06-19 06:00:21 -06:00
Brandon Keepers 98887fb148
Test localtunnel and retry if it failed 2017-06-11 01:06:53 -05:00
Brandon Keepers d680401279
Move tunnel code into a separate file 2017-06-11 00:22:24 -05:00
Brandon Keepers fdcc2e949f
Fix env var name for deprecated INTEGRATION_ID 2017-06-09 16:45:35 -05:00
Brandon Keepers fdfbaeafac
Update name from "GitHub Integrations" to "GitHub Apps" 2017-06-05 21:11:08 -05:00
Brandon Keepers cfadcb63c6
Tweaks 2017-05-03 12:13:19 -05:00
Brandon Keepers 0bbd9d182c
Get simulate working again 2017-05-03 11:54:28 -05:00
Brandon Keepers 3cdc44e462
Find private key if it is not set
Commander only calls the function if an argument is provided.
2017-04-29 07:50:59 -05:00
Christopher Hiller a422599f51 add .js ext to files in bin/; closes #129
- add missing `semver` dependency
- lint files in `bin/`
- ignore `localtunnel` issue for now
2017-04-26 14:51:23 -07: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 7d367bda0d Merge pull request #118 from probot/version-check
Ensure node version is satisfied
2017-04-08 17:37:17 -05:00
Brandon Keepers dba5ba8fbb
Move subdomain config 2017-04-08 17:16:17 -05:00