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

ChangelogTasks Unit Tests and Fixes #1130

Conversation

sandrofigo
Copy link
Contributor

@sandrofigo sandrofigo commented Feb 10, 2023

  • Adds unit tests for ChangelogTasks
  • Fixes ReleaseSection end index when changelog contains empty lines
  • Fixes ExtractChangelogSectionNotes not throwing the intended exception
  • Fixes IsEmpty property on ReleaseNotes when Notes are empty strings

Closes #1099

I confirm that the pull-request:

  • Follows the contribution guidelines
  • Is based on my own work
  • Is in compliance with my employer

@matkoch
Copy link
Member

matkoch commented Feb 15, 2023

Could you add some test cases for the format that this project uses? I.e., without sub-headings for Added etc.

@sandrofigo sandrofigo force-pushed the feature/changelogtasks-fixes-and-unit-tests branch 2 times, most recently from c62c880 to d4ea041 Compare February 16, 2023 10:02
@sandrofigo
Copy link
Contributor Author

@matkoch I have added two variants for the NUKE changelog flavor.

@matkoch matkoch force-pushed the develop branch 3 times, most recently from 2f5e101 to be17a24 Compare February 23, 2023 02:27
@sandrofigo sandrofigo force-pushed the feature/changelogtasks-fixes-and-unit-tests branch from d4ea041 to 9142936 Compare February 24, 2023 16:19
@matkoch matkoch force-pushed the develop branch 6 times, most recently from 874bde5 to 565eb99 Compare March 12, 2023 17:12
@sandrofigo sandrofigo force-pushed the feature/changelogtasks-fixes-and-unit-tests branch from 9142936 to 21ac079 Compare March 12, 2023 20:40
@sandrofigo
Copy link
Contributor Author

Ready to merge again after rebasing onto develop.

@matkoch Is it intended that I keep the feature branch up-to-date manually with the develop branch by rebasing and force pushing once in a while?

@sandrofigo sandrofigo force-pushed the feature/changelogtasks-fixes-and-unit-tests branch from 21ac079 to e94c904 Compare March 13, 2023 11:32
@matkoch matkoch force-pushed the develop branch 3 times, most recently from 03314ef to 37196e6 Compare March 16, 2023 00:31
@sandrofigo sandrofigo force-pushed the feature/changelogtasks-fixes-and-unit-tests branch from e94c904 to eac6f86 Compare March 19, 2023 12:40
@matkoch
Copy link
Member

matkoch commented Mar 19, 2023

Hi @sandrofigo
no you don't need to do anything. I do rebases myself (also noted in the contribution guidelines). I'll merge this for next release for sure.

@matkoch matkoch force-pushed the develop branch 4 times, most recently from b8baefb to 0f79b6c Compare March 20, 2023 17:28
@matkoch matkoch force-pushed the develop branch 3 times, most recently from 3d33ebb to f0637b8 Compare May 6, 2023 18:27
@sandrofigo
Copy link
Contributor Author

@matkoch It's a bummer that this PR didn't make it into the new release. Let me know if there is something I need to change or when you plan to include this.

@matkoch
Copy link
Member

matkoch commented May 6, 2023

Sorry but I really needed to get all the pending work released. Yes, I also merged some recent PRs, but this one takes a bit more time to review. In any case, I expect there will be reports about this release, so I'm sure another release will follow shortly!

@matkoch matkoch added this to the v7.1.0 milestone May 7, 2023
@matkoch matkoch force-pushed the develop branch 4 times, most recently from ef67aa7 to 9eab1df Compare May 15, 2023 21:07
@matkoch matkoch force-pushed the feature/changelogtasks-fixes-and-unit-tests branch from eac6f86 to 3be206d Compare May 15, 2023 21:12
@matkoch matkoch force-pushed the feature/changelogtasks-fixes-and-unit-tests branch from 3be206d to 3149321 Compare May 15, 2023 21:20
@matkoch matkoch merged commit 81bcea6 into nuke-build:develop May 15, 2023
matkoch pushed a commit that referenced this pull request May 15, 2023
@matkoch matkoch modified the milestones: v7.1.0, v7.0.1 May 15, 2023
matkoch pushed a commit that referenced this pull request May 15, 2023
matkoch pushed a commit that referenced this pull request May 15, 2023
@sandrofigo sandrofigo deleted the feature/changelogtasks-fixes-and-unit-tests branch August 26, 2023 22:22
@matkoch
Copy link
Member

matkoch commented Aug 31, 2023

@sandrofigo, this change has broken version updates.

I reverted some changes and also deleted some tests. If you want, feel free to bring them back. For my purpose, the task is working as intended again.

@sandrofigo
Copy link
Contributor Author

@matkoch I will try to come up with a fix for FinalizeChangelog() and UpdateVersionSummary() and would also readd the unit tests/fixes.

@sandrofigo
Copy link
Contributor Author

sandrofigo commented Sep 1, 2023

@matkoch Have a look at this PR #1250 and let me know what you think.

@sandrofigo sandrofigo mentioned this pull request Sep 5, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants