I have made a new improvement to my Roslyn Source Code Generator,AMS . Until now it just said the time and the commit date in a CI scenario ( Git ( GitLab,GitHub),Azure …)
Now – what if it can list all the merge requests between 2 dates ,so you can see what is new ?
Now you can have – see this:
What you need to do ?
Just add the following codes
using AMS_Base;
[assembly:VersionReleased(Name=”PreviousReleases”,ISODateTime =”2022-03-31″,recordData = RecordData.Merges)]
[assembly: VersionReleased(Name = “WithVersioning”,ISODateTime = “2022-04-02”,recordData = RecordData.Merges)]
[assembly: AMS_Base.VersionReleased(Name = “FutureRelease”,ISODateTime = “9999-04-16”,recordData = AMS_Base.RecordData.Merges)]
( Of course,you should read first how to add the NuGet package – see https://github.com/ignatandrei/RSCG_AMS/blob/main/README.md )
How it is made ?
First,we should find Git – start a process with
Where git.exe
or
which git
to find the location.
Second,start a process with the location of the git find below
log –merges –pretty=””%an|%cs|%H|%s
to see the merges . Then merge with the dates
assembly:VersionReleased
that are registered before – and this is all !
Leave a Reply