-
Notifications
You must be signed in to change notification settings - Fork 38
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
(#89) Add ability to populate release notes with information about contributors #541
base: develop
Are you sure you want to change the base?
Conversation
@gep13 please review at your convenience but do not merge yet. I just rebased your recent changes and I am now investigating how to implement my new feature in GitLat. UPDATE: I converted to draft to make sure this PR is not merged. |
2c7dd2c
to
9fdf779
Compare
I solved all the remaining issues. This logic is compatible with multiple issues/PRs being associated with a given issue/PRs and also the GetLinkedIssues method has been implemented for GitLab. |
@gep13 in case I wasn't clear: this PR is ready for review. |
In case anybody is interested to try this new feature, you can replace
in your cake script and you'll be able to generate release notes similar to this: https://github.com/Jericho/ZoomNet/releases/tag/0.71.0 |
@Jericho please accept my apologies for the radio silence on this PR! Simply put, I haven't had any time to even think about looking at this. I am hoping to review this in the coming days, and will provide some feedback (if there is any). Thanks again for your help with this! |
No apologies necessary. I'm just glad to be contributing. |
1b77d08
to
28df4ed
Compare
@Jericho apologies again! I haven't had a chance to look at this yet, and looks like I am going to have to do an immediate release to fix the issue with creating releases as a result of a required change upstream to Octokit. |
Rebased to pull in yesterday's commits. |
@Jericho is there something "special" that has to be done to get the generated release notes to contain the contributors? The reason that I ask is that we have an upcoming release of Chocolatey CLI, and I thought I would take this for a spin to see it in action, however, I am not seeing anything other than the normal output in the generated release notes. I can see that in code, the contributors for the issues are populated in the GetContributors call, but the template changes don't seem to be taking effect. |
If you are referencing my beta package If you are running GRM from source in Visual Studio, make sure you "rebuild" the whole project. It seems that changes to templates are not effective until you rebuild. This issue has caused me grief on several occasions where I modified the template but my changes were no reflected in the resulting release notes. My guess is that this problem is due to Visual Studio not automatically detecting changes to |
Thank you for the hint, although that doesn't seem to have helped. I am trying this out of Visual Studio. I went as far as closing Visual Studio, manually deleting the The contributors are still not being added into the generated release notes. |
Just tried using the |
Please set a break point on line 66 in Do you get the same? |
And while we're on the topic of templates, double-check the presence of |
Doh! I have figured it out... I suddenly remembered about the You have to right click on that, and then click I don't know exactly when this is run as part of the normal build process, but it might also explain why you found you had to clean the files in order to get things to work properly. @AdmiringWorm might be able to provide some insight into when this part of the tooling works. Thinking about it, I "think" it runs as part of the Cake build, but I thought it ran inside Visual Studio as well. Now that I have this working, I should be able to take this for a proper trial. |
It is indeed run as part of the Cake build, it is a separate task called |
@Jericho 👋 apologies again for not coming back to you sooner about this one! I would try to give an excuse, but I really don't have one, so, moving on... A couple of questions/observations...
Issue 113 was indeed raised by Geoffrey, however, there is a linked Pull Request that was raised by me. Shouldn't the description for this issue include the information about the link to the PR?
I haven't really got a strong opinion either way. If we go down the route of using a Configuration value to include/exclude the Contributor information, then we could control when this is instantiated? Or, as you say, perhaps split this out into a separate provider. That might make things a little more complicated in the long run though.
Again.. I am loving this PR, and the functionality that this provides! Thank you so much for putting the work in so far to get this to where it is! |
…uthor in the release notes
…st one contributor
…were included in release notes
…o be printed in the resulting markdown text
…solved by XXX by XYZ"
This is necessary because I merged the develop branch earlier today where the reference to NUnit's NuGet package was upgraded to version 4.x. If I understand the situation correctly, the 'legacy' assertion syntax was supported until version 3.x and was removed in 4.x. That's why my unit tests with the old syntax worked until I rebased my branch earlier today.
…inct template called "contributors".
…ct that we want contributors to be included in the release notes or not.
…orresponds to a certain path. If the node is not present in the doc, fallback to a second path. If this second path is not present, fallback to a third path and so on.
….IndexOf' where the result is used to check for the presence/absence of a substring can be replaced by 'string.Contains'
…itLeb provider
cc33ed0
to
05e3715
Compare
Properly attribute each issue / PR which is part of a release.
Resolves #89