Content-Length: 342876 | pFad | http://github.com/vapor/penny-bot/pull/308

93 Better changes detection in release reporting by MahdiBM · Pull Request #308 · vapor/penny-bot · GitHub
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

Better changes detection in release reporting #308

Merged
merged 8 commits into from
Feb 18, 2025

Conversation

MahdiBM
Copy link
Collaborator

@MahdiBM MahdiBM commented Feb 15, 2025

No description provided.

@MahdiBM MahdiBM requested review from 0xTim and gwynne as code owners February 15, 2025 11:15
Comment on lines +76 to +56
if let comparisonRange = self.findComparisonRange() {
try await self.getCommitsInRelease(
comparisonRange: comparisonRange
)
Copy link
Collaborator Author

@MahdiBM MahdiBM Feb 15, 2025

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.

@MahdiBM MahdiBM enabled auto-merge (squash) February 15, 2025 12:19
)
)
}

func findUseableImageLink() async -> String? {
Copy link
Collaborator Author

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.

@MahdiBM MahdiBM force-pushed the mmbm-better-release-commit-detection branch 2 times, most recently from 56e0fac to 5968d87 Compare February 16, 2025 04:37
@MahdiBM MahdiBM force-pushed the mmbm-better-release-commit-detection branch from 5968d87 to 72463aa Compare February 16, 2025 17:06
@MahdiBM MahdiBM force-pushed the mmbm-better-release-commit-detection branch from 79bf677 to cc3a0b4 Compare February 16, 2025 18:11
@@ -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)])
Copy link
Member

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:

Suggested change
logger.warning("Could not parse tag", metadata: ["tag": .string(release.tagName)])
logger.warning("Could not parse tag", metadata: ["tag": "\(release.tagName)"])

Copy link
Collaborator Author

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

@MahdiBM MahdiBM merged commit 69a86db into main Feb 18, 2025
13 checks passed
@MahdiBM MahdiBM deleted the mmbm-better-release-commit-detection branch February 18, 2025 21:59
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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/vapor/penny-bot/pull/308

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy