Skip to content

Commit cd6c10c

Browse files
committed
remove gfi requirement for intermediate
Signed-off-by: exploreriii <133720349+exploreriii@users.noreply.github.com>
1 parent 4faf64e commit cd6c10c

1 file changed

Lines changed: 2 additions & 22 deletions

File tree

.github/scripts/lib/eligibility/has-eligibility-03-intermediate.js

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
const { isTeam } = require('../team/has-team');
22
const { isOnSpamList } = require('../counts/is-on-spam-list');
3-
const { hasCompletedGfi } = require('../counts/has-completed-n-01-gfi');
43
const { hasCompletedBeginner } = require('../counts/has-completed-n-02-beginner');
54
const { countOpenAssignedIssues } = require('../counts/count-opened-assigned-issues');
65
const REJECTION_REASONS = require('./rejection-reasons');
76

7+
// Configurable
88
const MAX_OPEN_ASSIGNED_ISSUES = 2;
9-
const REQUIRED_GFI_COUNT = 1;
109
const REQUIRED_BEGINNER_COUNT = 1;
1110

11+
// Spam users are disabled for intermediate issues
1212
const hasIntermediateEligibility = async ({
1313
github,
1414
owner,
@@ -53,26 +53,6 @@ const hasIntermediateEligibility = async ({
5353
};
5454
}
5555

56-
// GFI requirement
57-
const hasRequiredGfi = await hasCompletedGfi({
58-
github,
59-
owner,
60-
repo,
61-
username,
62-
requiredCount: REQUIRED_GFI_COUNT,
63-
});
64-
65-
if (!hasRequiredGfi) {
66-
return {
67-
eligible: false,
68-
reason: REJECTION_REASONS.MISSING_GFI,
69-
context: {
70-
requiredCount: REQUIRED_GFI_COUNT,
71-
},
72-
};
73-
}
74-
75-
// Beginner requirement
7656
const hasRequiredBeginner = await hasCompletedBeginner({
7757
github,
7858
owner,

0 commit comments

Comments
 (0)