-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
…m Github. Shown automatically after update.
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.
LGTM, awesome enhancement 🚀 . I've just left a minor comment.
v2/internal/github/github.go
Outdated
"sort" | ||
"strings" | ||
) | ||
|
||
func GetReleaseNotes(tagVersion string) string { | ||
resp, err := http.Get("https://api.github.com/repos/wailsapp/wails/releases/tags/" + tagVersion) |
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.
Should we url.PathEscape
the tagVersion
, just to be sure?
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.
Hell yes 😜
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.