Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions utils/learningData.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export async function fetchUserSolutions(

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

for (const file of files) {
if (file.status !== "added" && file.status !== "modified") continue;
if (
file.status !== "added" &&
file.status !== "modified" &&
file.status !== "renamed"
)
continue;

const match = file.filename.match(usernamePattern);
if (match) {
Expand Down