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

Fix option to add rhel8 releases #490

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Conversation

larsevj
Copy link
Collaborator

@larsevj larsevj commented Apr 22, 2024

No description provided.

@larsevj larsevj force-pushed the add_option_to_add_rhel8_releases branch from 03912f4 to bc55995 Compare April 22, 2024 11:47
@@ -209,7 +209,7 @@ def create_pr_with_changes(
pr_msg: str,
rhel8: Optional[bool] = False,
):
commit_title = f"Add release {target}+rhel8" if rhel8 else f"Add release {target}"
commit_title = f"Add release {target} +rhel8" if rhel8 else f"Add release {target}"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think version numbers should have no spaces in them.

Can you consider using cut or other tools to extract the version number?
E.g.

COMMIT_MESSAGE="Add release 2024.02.04+rhel200"

release_name=$(echo $COMMIT_MESSAGE | rev | cut -d ' ' -f 1 | rev)  # remove: Add release
release_name=$(echo $release_name | cut -d + -f 1)  # remove: +rhel

echo $release_name

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

But +rhel8 is not a part of the version number, it is simply an identifier in the commit header saying that one should build for rhel8?

@larsevj larsevj force-pushed the add_option_to_add_rhel8_releases branch from bc55995 to 88d031d Compare April 22, 2024 12:31
Copy link
Contributor

@andreas-el andreas-el left a comment

Choose a reason for hiding this comment

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

Good one! ✈️

@larsevj larsevj force-pushed the add_option_to_add_rhel8_releases branch from 88d031d to a98dfe0 Compare April 22, 2024 12:46
@larsevj larsevj merged commit 7d67e7c into main Apr 22, 2024
5 checks passed
@larsevj larsevj deleted the add_option_to_add_rhel8_releases branch April 22, 2024 13:06
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