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

Computation of the baseline ref for release and epic branch workflow #227

Merged
merged 2 commits into from
Mar 1, 2024

Conversation

dennis-behm
Copy link
Member

This is implementing the fix for #226 to retrieve the baseline reference from the baselineReferences.config according to the outlined naming conventions in https://ibm.github.io/z-devops-acceleration-program/docs/git-branching-model-for-mainframe-dev/#naming-conventions

…ntenance

Signed-off-by: Dennis Behm <dennis.behm@de.ibm.com>
@dennis-behm dennis-behm requested a review from M-DLB March 1, 2024 11:01
Copy link
Collaborator

@M-DLB M-DLB left a comment

Choose a reason for hiding this comment

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

Can you take care of these changes please? :)

Comment on lines 215 to 218
"RELEASE" | "release" | "EPIC" | "epic")
baselineRef=$(cat "${baselineReferenceFile}" | grep "^${mainBranchSegment}/${secondBranchSegment}" | awk -F "=" ' { print $2 }')
;;
"main" | "MAIN")
Copy link
Collaborator

Choose a reason for hiding this comment

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

You could translate to uppercase with tr instead of checking different values.

@@ -209,7 +209,17 @@ computeBuildConfiguration() {

getBaselineReference() {

baselineRef=$(cat "${baselineReferenceFile}" | grep "^${mainBranchSegment}" | awk -F "=" ' { print $2 }')
baselienRef=""
Copy link
Collaborator

Choose a reason for hiding this comment

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

Typo here: baselienRef -> baselineRef

Signed-off-by: Dennis Behm <dennis.behm@de.ibm.com>
@dennis-behm
Copy link
Member Author

@M-DLB Please let me know your thoughts on the updates. c2ff8f2

@dennis-behm dennis-behm merged commit f8790b4 into IBM:main Mar 1, 2024
1 check passed
@dennis-behm dennis-behm deleted the feature/226-releaseTagComputation branch March 1, 2024 15:43
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.

2 participants