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

Make use of the target commitish date #75

Merged
merged 2 commits into from
Jan 26, 2022
Merged

Conversation

AvdLee
Copy link
Contributor

@AvdLee AvdLee commented Jan 26, 2022

In scenarios where a tagName was provided, but no changelogToTag we changed the code to throw an Error.changelogTargetDateMissing.

However, there's another scenario that we did not solve here:

  • When creating a release from a target commitish, we only provide a tagName to use for the to be created tag. The changelogToTag in this case is the targetCommitish date

We did not support this correctly, so I added another fallback to fetch the date using the target commitish.

@AvdLee AvdLee self-assigned this Jan 26, 2022
@AvdLee AvdLee requested review from amirdew and BasThomas and removed request for Boris-Em January 26, 2022 09:55
@wetransferplatform
Copy link
Collaborator

wetransferplatform commented Jan 26, 2022

Messages
📖

View more details on Bitrise

📖 GitBuddyTests: Executed 53 tests (0 failed, 0 retried, 0 skipped) in 1.107 seconds

Code Coverage Report

Name Coverage
GitBuddy 0.00% ⚠️

Generated by 🚫 Danger Swift against d76f082

Copy link

@kevinrenskers kevinrenskers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would remove that one dateFormatter instance and also solve the 2 (SwiftLint) warnings, but looks good.

@AvdLee AvdLee merged commit 50fd195 into master Jan 26, 2022
@AvdLee AvdLee deleted the feature/target-commitish-date branch January 26, 2022 10:34
@wetransferplatform
Copy link
Collaborator

Congratulations! 🎉 This was released as part of Release 4.1.0 🚀

Generated by GitBuddy

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.

4 participants