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

Stop using __LINE_BOT_SDK_PYTHON_VERSION__ #710

Merged
merged 7 commits into from
Nov 25, 2024
Merged

Conversation

Yang-33
Copy link
Contributor

@Yang-33 Yang-33 commented Nov 21, 2024

The string __LINE_BOT_SDK_PYTHON_VERSION__ is used in linebot/__about__.py to make it easier to replace with the new version at the time of release. However, this string is inappropriate as a version, so it needs to be replaced when testing locally... This is cumbersome for us, so this PR addresses that issue.

At the time of release, the file that need to be updated will be directly modified anyway. ./tools/update_version.py will handle this. Since 1 lines across 1 files need to be changed, the CI will fail if this condition is not met. Reviewers can verify that the version is changed locally, but it's up to them whether to do so.

@Yang-33
Copy link
Contributor Author

Yang-33 commented Nov 21, 2024

output in CI
image

Comment on lines +34 to +38
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
VERSION=${{ github.event.inputs.version }}
else
VERSION=${{ github.event.release.tag_name }}
fi
Copy link
Contributor Author

Choose a reason for hiding this comment

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

(for unexpected failure)

@Yang-33 Yang-33 marked this pull request as ready for review November 21, 2024 03:41
@Yang-33 Yang-33 enabled auto-merge (squash) November 21, 2024 03:41
tools/update_version.py Outdated Show resolved Hide resolved
Copy link
Contributor

@eucyt eucyt left a comment

Choose a reason for hiding this comment

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

LGTM!

@Yang-33 Yang-33 merged commit 5cd7f1a into master Nov 25, 2024
18 checks passed
@Yang-33 Yang-33 deleted the update-version-2 branch November 25, 2024 01:27
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