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

Add date to ReleaseNotes type definition #917

Merged
merged 3 commits into from
Aug 24, 2015
Merged

Add date to ReleaseNotes type definition #917

merged 3 commits into from
Aug 24, 2015

Conversation

allykzam
Copy link
Contributor

Adds a new "Date" field as a DateTime option to the ReleaseNotes record type, and performs simple parsing of dates from the complex release notes format. The regex I used finds dates in the format of YYYY-MM-DD, with the option to use any of - /. as the separators, but I pass the matched result to DateTime.TryParse. Should be able to change the regex (or add additional regexes) to match other date formats, but really, who doesn't use ISO-8601? 😉

Added a parser to handle looking for dates in the header of
complex-formatted release notes.
Currently failing because the date "2013/11/5" isn't being caught by the
regular expression being used.
@forki
Copy link
Member

forki commented Aug 24, 2015

very nice.

forki added a commit that referenced this pull request Aug 24, 2015
Add date to ReleaseNotes type definition
@forki forki merged commit 68f42b7 into fsprojects:master Aug 24, 2015
@allykzam
Copy link
Contributor Author

Sorry, should have thought to include a backwards-compatible constructor. Thanks for cleaning up after me 😬

@forki
Copy link
Member

forki commented Aug 24, 2015

No worries. I'm breaking things in FAKE for over 5 years now ;-)

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.

2 participants