Skip to content

Commit

Permalink
remove sponsor labels config requirement (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfix22 authored Feb 3, 2021
1 parent 50e591c commit 94a2491
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/thread/opened.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ async function checkIfSponsor(context, after) {
module.exports = () => async (context) => {
const config = await getConfig(context)

if (!Array.isArray(config.sponsor_labels)) {
return
}
// if (!Array.isArray(config.sponsor_labels)) {
// return
// }

if (await checkIfSponsor(context)) {
addLabels(context.octokit, context.issue({ labels: config.sponsor_labels }))
addLabels(context.octokit, context.issue({ labels: config.sponsor_labels || ['sponsor'] }))
}
}
3 changes: 0 additions & 3 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ commits:
labels:
- author
sponsor_labels:
- sponsor
default:
close:
delay: 1ms
Expand Down

0 comments on commit 94a2491

Please sign in to comment.