We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 29ca703 + 77ee26b commit a661cdeCopy full SHA for a661cde
1 file changed
utils/learningData.js
@@ -285,7 +285,7 @@ export async function fetchUserSolutions(
285
286
/**
287
* Fetches the files changed in a PR and returns those that match
288
- * {problem-name}/{username}.{ext} and are added or modified.
+ * {problem-name}/{username}.{ext} and are added, modified, or renamed.
289
*
290
* @param {string} repoOwner
291
* @param {string} repoName
@@ -329,7 +329,12 @@ export async function fetchPRSubmissions(
329
const results = [];
330
331
for (const file of files) {
332
- if (file.status !== "added" && file.status !== "modified") continue;
+ if (
333
+ file.status !== "added" &&
334
+ file.status !== "modified" &&
335
+ file.status !== "renamed"
336
+ )
337
+ continue;
338
339
const match = file.filename.match(usernamePattern);
340
if (match) {
0 commit comments