Skip to content

Fix version commit count#141

Merged
MarkKoz merged 4 commits into
mainfrom
bug/ci/version-commit-count
Jun 1, 2022
Merged

Fix version commit count#141
MarkKoz merged 4 commits into
mainfrom
bug/ci/version-commit-count

Conversation

@MarkKoz
Copy link
Copy Markdown
Contributor

@MarkKoz MarkKoz commented Jun 1, 2022

The commit count was off by 1 since the last newline was being stripped and thus not counted. In CI, the checkout action was not retrieving history, so the commit count was not able to get the right number of commits. I set it to fetch 100 commits, which should be more than reasonably safe; it would take over 100 commits on the release day to cause the version to be incorrect, and even then it's only really a problem if a second release happens on the same day.

MarkKoz added 4 commits June 1, 2022 12:09
The last part of the version is the commit count, which relies on the
repo's commit history.
The env var is no longer used anywhere.
@MarkKoz MarkKoz added area: CI Related to continuous intergration and deployment area: packaging Related to packaging (setuptools, versioning, pyproject.toml) labels Jun 1, 2022
@MarkKoz MarkKoz requested a review from HassanAbouelela June 1, 2022 19:21
@MarkKoz MarkKoz requested review from Den4200 and jb3 as code owners June 1, 2022 19:21
@MarkKoz MarkKoz added type: bug Something isn't working priority: 2 - normal labels Jun 1, 2022
Copy link
Copy Markdown
Contributor

@HassanAbouelela HassanAbouelela left a comment

Choose a reason for hiding this comment

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

Everything looks good here

@MarkKoz MarkKoz merged commit 8ca7da3 into main Jun 1, 2022
@MarkKoz MarkKoz deleted the bug/ci/version-commit-count branch June 1, 2022 19:28
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 84.731% when pulling 433a30a on bug/ci/version-commit-count into b0fb2bf on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: CI Related to continuous intergration and deployment area: packaging Related to packaging (setuptools, versioning, pyproject.toml) priority: 2 - normal type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants