-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Better changes detection in release reporting #308
Conversation
if let comparisonRange = self.findComparisonRange() { | ||
try await self.getCommitsInRelease( | ||
comparisonRange: comparisonRange | ||
) |
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.
get the comparison range from **Full Changelog**: https://github.com/DiscordBM/DiscordBM/compare/v1.12.2...v1.13.0
texts when possible.
) | ||
) | ||
} | ||
|
||
func findUseableImageLink() async -> String? { |
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.
Sometimes Discord fails to show an image for a release. I think this should fix it.
56e0fac
to
5968d87
Compare
5968d87
to
72463aa
Compare
79bf677
to
cc3a0b4
Compare
…tion' into mmbm-better-release-commit-detection
@@ -135,6 +135,7 @@ struct ReleaseMaker { | |||
if let (_, version) = SemanticVersion.fromGitHubTag(release.tagName) { | |||
return (release, version) | |||
} | |||
logger.warning("Could not parse tag", metadata: ["tag": .string(release.tagName)]) |
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.
I believe the preferred form for this is:
logger.warning("Could not parse tag", metadata: ["tag": .string(release.tagName)]) | |
logger.warning("Could not parse tag", metadata: ["tag": "\(release.tagName)"]) |
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.
I don't believe that tbh, I always use explicit .string when the thing is an string 😅
Shouldn't make much of a difference in the end but yeah that's what I've been going with
No description provided.