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

Issue #701: releasenotes builder: release version validation should work on digits #706

Merged
merged 1 commit into from
Nov 25, 2022
Merged

Issue #701: releasenotes builder: release version validation should work on digits #706

merged 1 commit into from
Nov 25, 2022

Conversation

stoyanK7
Copy link
Contributor

Resolves #701


For the manual test I modified the script to be pointing to this branch and changed CS_RELEASE_VERSION to 10.5.0. Runs with no errors: https://github.com/stoyanK7/checkstyle/commit/dee3811dd6eb71765ccf3bc085763cfdf876042b

If I change CS_RELEASE_VERSION to 10.5.1, it is failing as expected.

[WARN] Issue #11163 "Enforce file size on Java inputs" is not closed! Please review issue https://github.com/checkstyle/checkstyle/issues/11163
[WARN] Issue #11446 "Update Tests to use new 'verifyXxxxxx' method or 'execute' that use inlined config in Input files" is not closed! Please review issue https://github.com/checkstyle/checkstyle/issues/11446
[WARN] Issue #11214 "Specify violation messages in input files." is not closed! Please review issue https://github.com/checkstyle/checkstyle/issues/11214
[WARN] Issue #12330 "Resolve Pitest for Block Profile-2" is not closed! Please review issue https://github.com/checkstyle/checkstyle/issues/12330

Generation ends with 1 errors.

[ERROR] Validation of release number failed. Release number is a patch(10.5.1), but release notes contain 'new' or 'breaking compatability' labels. Please correct release number by running https://github.com/checkstyle/checkstyle/actions/workflows/bump-version-and-update-milestone.yml

private static boolean isMinor(long amountOfCommas) {
return amountOfCommas == 1;
private static boolean endsWithZero(String str) {
return !str.isEmpty() && str.charAt(str.length() - 1) == '0';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know that this method sounds redundant and we could have used built-in str.endsWith("0") but Intellij suggests using this instead so I went with it.

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

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

items:

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

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

Ok to merge

@romani romani merged commit b412c47 into checkstyle:master Nov 25, 2022
@rnveach
Copy link
Member

rnveach commented Nov 26, 2022

@romani ping!
What is releasenotes-builder/.attach_pid15148?

@romani
Copy link
Member

romani commented Nov 26, 2022

Removed

@stoyanK7 stoyanK7 deleted the issue/701-releasenotes-builder-release-version-validation-should-work-on-digits branch November 26, 2022 07:25
@stoyanK7
Copy link
Contributor Author

No idea where those attach_pid files pop from but it happens pretty often and only when working on this project.

@romani
Copy link
Member

romani commented Nov 26, 2022

we can add it to https://github.com/checkstyle/contribution/blob/master/.gitignore to not bother us next time

@stoyanK7
Copy link
Contributor Author

stoyanK7 commented Nov 27, 2022

Yes, I do use IntelliJ IDEA, thanks for the information!

I see other projects having it in their .gitingore, wouldn't hurt to have it.

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.

releasenotes builder: release version validation should work on digits
3 participants