Skip to content

Commit

Permalink
fix: login comparison for "pro-for-free" login entries (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m authored Nov 26, 2020
1 parent f307d66 commit b647a0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/get-plan.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = getPlan;
const PRO_PLAN_FOR_FREE = require("../pro-plan-for-free");

async function getPlan(robot, owner) {
if (PRO_PLAN_FOR_FREE.includes(owner.login)) {
if (PRO_PLAN_FOR_FREE.includes(owner.login.toLowerCase())) {
return "pro";
}

Expand Down
2 changes: 1 addition & 1 deletion lib/pro/set-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Read more about [WIP configuration](https://github.com/wip/app#configuration)`,
}

/* istanbul ignore next */
if (PRO_PLAN_FOR_FREE.includes(repository.owner.login)) {
if (PRO_PLAN_FOR_FREE.includes(repository.owner.login.toLowerCase())) {
checkOptions.output.summary += `
### 🆓💸 The account ${repository.owner.login} is [enabled for the pro plan for free](https://github.com/wip/app/blob/master/pro-plan-for-free.js)
Expand Down

0 comments on commit b647a0d

Please sign in to comment.