Skip to content

Commit ecf5677

Browse files
authored
Support more associations (#107)
1 parent e7240c0 commit ecf5677

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Subscriber/WelcomeFirstTimeContributorSubscriber.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ public function onPullRequest(GitHubEvent $event)
2626
return;
2727
}
2828

29-
if ('NONE' !== ($data['pull_request']['author_association'] ?? '')) {
29+
$association = $data['pull_request']['author_association'] ?? '';
30+
if (!in_array($association, ['NONE', 'FIRST_TIMER', 'FIRST_TIME_CONTRIBUTOR'])) {
3031
return;
3132
}
3233

0 commit comments

Comments
 (0)