Skip to content
Permalink
Browse files
fix: fix an error in isFirstTimeContributor function.
  • Loading branch information
plainheart committed Mar 15, 2021
1 parent 21c1343 commit dc9aa22e7b31db032c56bfe495f55e462644d3a8
Showing 1 changed file with 1 addition and 1 deletion.
@@ -277,7 +277,7 @@ async function isFirstTimeContributor(context) {
creator: context.payload.pull_request.user.login
})
);
return response.data.filter(data => data.pull_request) === 1;
return response.data.filter(data => data.pull_request).length === 1;
}
catch (e) {
logger.error('failed to check first-time contributor');

0 comments on commit dc9aa22

Please sign in to comment.