Skip to content

Conversation

@DiogoRibeiro7
Copy link
Owner

No description provided.

@DiogoRibeiro7 DiogoRibeiro7 merged commit 4642894 into main Apr 12, 2025
1 check passed
@DiogoRibeiro7 DiogoRibeiro7 requested a review from Copilot April 12, 2025 21:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment on lines +46 to +47
LAST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
LAST_COMMIT=$(git log -1 --format='%H')
Copy link

Copilot AI Apr 12, 2025

Choose a reason for hiding this comment

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

Consider adding error handling or a default value in case no tags are found. Without this, an empty LAST_TAG may lead to unexpected behavior in the version bump logic.

Suggested change
LAST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
LAST_COMMIT=$(git log -1 --format='%H')
LAST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1) 2>/dev/null || echo "v0.0.0")
LAST_COMMIT=$(git log -1 --format='%H')
if [ "$LAST_TAG" = "v0.0.0" ]; then
echo "No tags found. Defaulting LAST_TAG to v0.0.0"
fi

Copilot uses AI. Check for mistakes.
run: |
git push --follow-tags
- name: "Install Poetry"
run: pip install poetry
Copy link

Copilot AI Apr 12, 2025

Choose a reason for hiding this comment

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

[nitpick] To ensure consistency in build environments, consider specifying a particular version of Poetry when installing.

Suggested change
run: pip install poetry
run: pip install poetry==1.5.1

Copilot uses AI. Check for mistakes.
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