Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(#455): handle baselineBranchName #330

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

groinder
Copy link
Contributor

@groinder groinder commented Feb 24, 2025

Comment on lines -86 to +84
const mainBranch = createTestRequestDto.sourceBranch ?? project.mainBranchName;
const baselineBranch = createTestRequestDto.baselineBranchName ?? project.mainBranchName;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I noticed that sourceBranch was never used, so I replaced it with baselineBranchName to match existing parameter since that can already be set on the config and is send by the sdk-js if present.

Copy link
Member

Choose a reason for hiding this comment

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

I guess it was used before to make manual test runs with comparison within branches not base on main branch
please, update docs on this method

@groinder groinder self-assigned this Feb 25, 2025
@groinder
Copy link
Contributor Author

@pashidlos I think this is now ready, please take a look.

@@ -41,6 +41,7 @@ model Project {
builds Build[]
TestRun TestRun[]
testVariations TestVariation[]
protectedBranch String?
Copy link
Member

Choose a reason for hiding this comment

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

not sure I completely understand the purpose of this filtering
could we move this change to separate PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature request] Ability to set the baseline branch name
2 participants