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

Feature/120 change latest tag selection from time to semantic #124

Conversation

miroslavpojer
Copy link
Collaborator

Release Notes:

  • Replaced time ordering by semantic one when no from tag defined.

Closes #120

- Implemented new inpout to define from tag.
- Newly user is able to control start point for Release Notes generation.
- Several pylint fixes.
- Applied to project's release draft yaml file.
- Replaced time ordering by semantic one when no from tag defined.
Copy link
Collaborator

@MobiTikula MobiTikula left a comment

Choose a reason for hiding this comment

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

I like the way of use semver library. There are some comments, but they are already mentioned in PR #121.

…om-time-to-semantic

# Conflicts:
#	release_notes_generator/generator.py
#	release_notes_generator/utils/pull_reuqest_utils.py
#	tests/test_action_inputs.py
#	tests/test_release_notes_generator.py
Copy link
Collaborator

@MobiTikula MobiTikula left a comment

Choose a reason for hiding this comment

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

Fix please.

@@ -81,7 +82,7 @@ def generate(self) -> Optional[str]:
return None

# get the latest release
rls: GitRelease = self.get_latest_release(repo)
rls = self.get_latest_release(repo)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Keep the type hints.

if ActionInputs.is_from_tag_name_defined():
logger.info("Getting latest release by from-tag name %s", ActionInputs.get_tag_name())
rls: GitRelease = self._safe_call(repo.get_release)(ActionInputs.get_from_tag_name())
rls = self._safe_call(repo.get_release)(ActionInputs.get_from_tag_name())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Keep.

@MobiTikula MobiTikula self-requested a review December 9, 2024 12:13
Copy link
Collaborator

@MobiTikula MobiTikula left a comment

Choose a reason for hiding this comment

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

Approved.

@miroslavpojer miroslavpojer merged commit 303a57a into master Dec 9, 2024
4 checks passed
@miroslavpojer miroslavpojer deleted the feature/120-Change-latest-tag-selection-from-time-to-semantic branch December 9, 2024 12:13
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.

Change latest tag selection from time to semantic
2 participants