We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
repoName
1 parent 457104e commit cd9fda5Copy full SHA for cd9fda5
1 file changed
packages/web/src/features/agents/review-agent/nodes/gitlabMrParser.ts
@@ -30,8 +30,9 @@ export const gitlabMrParser = async (
30
throw error;
31
}
32
33
- const namespace = mrPayload.project.path_with_namespace.split('/').slice(0, -1).join('/');
34
- const repoName = mrPayload.project.name;
+ const pathParts = mrPayload.project.path_with_namespace.split('/');
+ const namespace = pathParts.slice(0, -1).join('/');
35
+ const repoName = pathParts[pathParts.length - 1];
36
37
const sourcebotFileDiffs: (sourcebot_file_diff | null)[] = fileDiffs.map((fileDiff) => {
38
const fromPath = fileDiff.old_path as string;
0 commit comments