Commit Graph

25 Commits

Author SHA1 Message Date
Gregor 0a3c828ff9 style: standard 2019-03-08 11:16:59 -08: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
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 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 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 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