-
Notifications
You must be signed in to change notification settings - Fork 64
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 new :append_datetime param and fix dates to UTC. #53
Conversation
Here's an example of your CHANGELOG entry under ### Fixed:
- Add new :append_datetime param and fix dates to UTC. Generated by 🚫 Danger |
Hi @donileo , thanks a lot for the idea how to improve the plugin and actual contribution ❤️. I understand your need from issue #52
the approach (add additional
Suggestion for improvement:Instead of adding a new param for date & time format, I suggest to enhance the existing
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comment about overall approach to satisfy the need to change format of the stamped date & time
Wow I forgot about this 😄 lol. That's what happens when you get caught up with work, implement your own solution that works for your own cases and then forget about requested changes such as the above lol. Let's see if I can do this today 😄, no promises.. |
Ok doing this now. Good suggestions. Some observations:
Update: For item 2 I went ahead and added the ability not to stamp the date via the |
3a9ea26
to
0c2df91
Compare
Date time format is in Ruby's strftime format and is not required. If not passed no date is stamped on the changelog section.
ac6549e
to
e8bfb76
Compare
e8bfb76
to
5aa4a03
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, approve and going to release it 🎉 thank you for contribution once again @donileo
@@ -80,12 +80,35 @@ | |||
expect(modifiedSectionLine).to eq("## [12.34.56]\n") | |||
end | |||
|
|||
it 'updates [Unreleased] section identifier with appending date' do | |||
# Update [Unreleased] section identifier with new one | |||
it 'updates [Unreleased] section identifier appending a date via the default datetime format' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect
@pajapro Thanks 👍, no problem. I think another change (not sure if its considered breaking) that needs to be mentioned in the release is that the actual stamped date is now in UTC format - not local since previously it was using |
Good point, for now I at least updated release notes. |
This PR adds a new stamp_changelog action argument:
stamp_date_time
. Specifying true stamps the changelog in the format of standard iso8601 date time"2020-12-17T22:25:13Z"
. By default it is false and when true it overrides stamp_date. The date chosen, whether by specifyingstamp_date: true
orstamp_date_time: true
are placed in the env variableFL_UPDATE_DATE_VAL
,FL_UPDATE_DATE_TIME_VAL
respectively.It also fixes the error being given by fastlane that the stamp_date arg was not a string and makes all the dates used for the stamp_dates be in UTC time.
I figure this PR may require some additional modifications depending on the needs of the project but I figured it could be built upon 😄.