Skip to content

Commit c9602cc

Browse files
committed
chore: update JSdocs for detectUnlockedLevel
Signed-off-by: Parv Ninama <ninamaparv@gmail.com>
1 parent a644f08 commit c9602cc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/scripts/shared/core/eligibility.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,14 @@ function getNextLevelInfo(currentLevelKey) {
160160
}
161161

162162
/**
163-
* Detects if the contributor just unlocked the next level.
163+
* Detects whether the contributor appears to have just unlocked
164+
* the next level based on current GitHub issue search results.
164165
*
165166
* Trigger condition:
166-
* completed count === requiredCount
167+
* observed completed count === requiredCount
167168
*
168169
* Uses a capped query (requiredCount + 1) for efficiency.
169-
*
170+
*
170171
* @param {import('@actions/github').GitHub} github
171172
* @param {object} homeRepo
172173
* @param {string} username

0 commit comments

Comments
 (0)