diff --git a/.env.example b/.env.example index ec569a4..8fdc8d7 100644 --- a/.env.example +++ b/.env.example @@ -9,11 +9,14 @@ LOG_LEVEL=debug # WEBHOOK_PROXY_URL= # Redis Labs DB -REDIS_URL= +REDIS_PORT= +REDIS_HOST= # Sentry DSN https://sentry.io/dawn-5x/repo-ranger/ # Probot will automatically initialize Sentry: https://probot.github.io/docs/configuration/ SENTRY_DSN= SEGMENT_WRITE_KEY= -WINDSOR_KEY= + +# List of comma separated values +BETA_USERS= diff --git a/README.md b/README.md index 6f44fd7..e362e89 100644 --- a/README.md +++ b/README.md @@ -20,3 +20,7 @@ To get started: 4. Set `WEBHOOK_PROXY_URL` to the webhook URL in your `.env` 5. `brew services start redis` 6. `yarn dev` + +## Feedback + +If you run into issues or have ideas for improving Ranger, please share feedback at [reporanger.com/feedback](https://reporanger.com/feedback) or by emailing [hi@reporanger.com](mailto:hi@reporanger.com). diff --git a/src/verify-payment-plan.js b/src/verify-payment-plan.js index 21c4314..9dcebab 100644 --- a/src/verify-payment-plan.js +++ b/src/verify-payment-plan.js @@ -1,29 +1,8 @@ -// TODO add DEV flag const Sentry = require('@sentry/node') const r = require('rexrex') const { OPEN_SOURCE } = require('./constants') -const ALLOW_LIST = new Set([ - 'dawnlabs', - 'windsorio', - 'runeai', - 'explosion', - 'gremlin', - 'nlog', - 'vectos', - 'nerdwallet', - 'nerdwalletoss', - 'rockspin', - 'lime', - 'antimatter15', - 'tonymastrorio', - 'victorbordo', - 'vanilla', - 'kuromukira', - 'daedalus28', - 'scaleleap', - 'moltar', -]) +const ALLOW_LIST = new Set(process.env.BETA_USERS ? process.env.BETA_USERS.split(',') : []) module.exports = async function verifyPaymentPlan(robot, context) { if (!context.payload.repository.private) {