Skip to content

Commit a661cde

Browse files
authored
Merge pull request #35 from DaleStudy/fix/include-renamed-in-pr-submissions
fix: PR 파일 집계에 rename 상태 포함
2 parents 29ca703 + 77ee26b commit a661cde

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

utils/learningData.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ export async function fetchUserSolutions(
285285

286286
/**
287287
* Fetches the files changed in a PR and returns those that match
288-
* {problem-name}/{username}.{ext} and are added or modified.
288+
* {problem-name}/{username}.{ext} and are added, modified, or renamed.
289289
*
290290
* @param {string} repoOwner
291291
* @param {string} repoName
@@ -329,7 +329,12 @@ export async function fetchPRSubmissions(
329329
const results = [];
330330

331331
for (const file of files) {
332-
if (file.status !== "added" && file.status !== "modified") continue;
332+
if (
333+
file.status !== "added" &&
334+
file.status !== "modified" &&
335+
file.status !== "renamed"
336+
)
337+
continue;
333338

334339
const match = file.filename.match(usernamePattern);
335340
if (match) {

0 commit comments

Comments
 (0)