melos icon indicating copy to clipboard operation
melos copied to clipboard

request: Automatically create GitHub releases

Open Almighty-Alpaca opened this issue 3 years ago • 0 comments

Is there an existing feature request for this?

  • [X] I have searched the existing issues.

Command

No response

Description

I propose adding a way to automatically create releases on GitHub in addition to the normal git tags. There are two way this could be achieved:

  • Authenticating with the official GitHub API

  • Generating a link to a prefilled form for the user (I'd prefer this option). GitHub supports prefilling the form for creating a release using query parameters:

https://github.com/invertase/melos/releases/new
	?tag=melos-v1.0.0
	&title=meslos%20-%20v1.0.0
	&body=Changelog%20and%20breaking%20information
	&prerelease=false

The process could triggered either

  • manually with a command line flag: melos version --github
  • it's own command: melos github
  • automatically when the repository field in the pubspec.yaml is a GitHub repository
  • a melos.yaml config entry:
command:
    version:
        github: true

It would also be possible to chose a more generic name to open up the feature for other platforms such as GitLab, however I'm not sure if GitLab supports prefilling the form in any way.

Reasoning

I really love how much work melos saves with the version and publish commands. Creating releases on GitHub fits really well into the work melos already automates and is quite tiring to do manually every time.

Additional context and comments

No response

Almighty-Alpaca avatar Apr 14 '22 11:04 Almighty-Alpaca