Skip to content

Conversation

gauthierpetetin
Copy link
Contributor

No description provided.

@@ -223,7 +248,7 @@ async function main() {
`Generating CSV file for commits between ${branchA} and ${branchB} on ${platform} platform...`,
);

const commitsByTeam = await filterCommitsByTeam(platform, branchA, branchB);
const commitsByTeam = await filterCommitsByTeam(platform, `origin/${branchA}`, `origin/${branchB}`);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Branch Validation Mismatch

The branch existence validation checks for local branches (branchA, branchB), but the filterCommitsByTeam function subsequently uses remote branches (origin/${branchA}, origin/${branchB}). This inconsistency means the script might pass validation when local branches exist but fail during the git log operation if the corresponding remote branches are missing, or vice versa. The validation should check the same remote references that are used.

Fix in Cursor Fix in Web

@gauthierpetetin gauthierpetetin marked this pull request as draft August 4, 2025 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants