Skip to content

Commit

Permalink
Create beta users env var (#106)
Browse files Browse the repository at this point in the history
* create beta users env var

* update README
  • Loading branch information
mfix22 authored Feb 27, 2022
1 parent c48e919 commit 2803d0e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 24 deletions.
7 changes: 5 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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=
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
23 changes: 1 addition & 22 deletions src/verify-payment-plan.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit 2803d0e

Please sign in to comment.