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 support for retrieving the release notes from Github. #1679

Merged
merged 6 commits into from
Aug 1, 2022

Conversation

leaanthony
Copy link
Member

New wails show command to show release notes (as well as other things - maybe doctor later on).
Release notes are run through a markdown renderer for nice output. They are automatically displayed after an update.

@leaanthony leaanthony requested a review from stffabi July 30, 2022 10:32
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jul 30, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 496b21d
Status:⚡️  Build in progress...

View logs

Copy link
Collaborator

@stffabi stffabi left a comment

Choose a reason for hiding this comment

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

LGTM, awesome enhancement 🚀 . I've just left a minor comment.

"sort"
"strings"
)

func GetReleaseNotes(tagVersion string) string {
resp, err := http.Get("https://api.github.com/repos/wailsapp/wails/releases/tags/" + tagVersion)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we url.PathEscape the tagVersion, just to be sure?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hell yes 😜

@leaanthony leaanthony merged commit e9fc5c9 into master Aug 1, 2022
@leaanthony leaanthony deleted the feature/release-notes branch August 1, 2022 10:05
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