Skip to content

Commit

Permalink
whitelist daedalus28
Browse files Browse the repository at this point in the history
  • Loading branch information
mfix22 committed Jun 24, 2020
1 parent 389dacd commit 50576d0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/verify-payment-plan.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const WHITE_LIST = new Set([
'tonymastrorio',
'victorbordo',
'vanilla',
'kuromukira'
'kuromukira',
'daedalus28',
])

module.exports = async function verifyPaymentPlan(robot, context) {
Expand Down Expand Up @@ -57,7 +58,7 @@ module.exports = async function verifyPaymentPlan(robot, context) {

const { data } = await context.github.apps.listRepos({ per_page: 100 })

const count = data.repositories.filter(r => r.private).length
const count = data.repositories.filter((r) => r.private).length

const max = getMaxRepositories(account.marketplace_purchase.plan)

Expand All @@ -70,7 +71,7 @@ module.exports = async function verifyPaymentPlan(robot, context) {
if (error.status !== 404) {
robot.log.error(error, context.repo())
const Sentry = require('@sentry/node')
Sentry.configureScope(scope => {
Sentry.configureScope((scope) => {
scope.setUser({ username: owner })
Sentry.captureException(error)
})
Expand All @@ -91,7 +92,7 @@ const privateReposAllowedPattern = r.and(

function getMaxRepositories(plan) {
// e.g. ['Unlimited public repositories', '5 private repositories']
const privateRepoBullet = plan.bullets.find(b =>
const privateRepoBullet = plan.bullets.find((b) =>
b.match(r.regex(privateReposAllowedPattern, 'i'))
)

Expand Down

0 comments on commit 50576d0

Please # to comment.