np icon indicating copy to clipboard operation
np copied to clipboard

GitLab release draft

Open inker opened this issue 4 years ago • 5 comments

Description

There is an option to create GitHub releases. Are there any plans to do the same for GitLab?

Possible implementation

I could help with implementation.

inker avatar Apr 19 '20 20:04 inker

Does GitLab support a query string for prefilling a release note like GitHub does?

sindresorhus avatar Apr 20 '20 03:04 sindresorhus

According to the GitLab Releases API, it's a post request that supports creating release notes with a description string in the body. Should work just like np current release note creation with github, albeit with a different request structure.

dopecodez avatar Jun 29 '20 06:06 dopecodez

@dopecodez np doesn't do a POST request. np just opens a URL with some search params. Doing a POST request would involve authentication and I'm not interested in going down that road.

I would recommend opening an issue on GitLab about supporting the same URL creation as GitHub does: https://github.com/sindresorhus/new-github-release-url

sindresorhus avatar Jun 29 '20 07:06 sindresorhus

Ah, makes sense. Going down the authentication path would add quite an amount of overhead. I think we can wait and see if GitLab is interested in supporting URL's before we take this up.

dopecodez avatar Jun 29 '20 07:06 dopecodez

Maybe this could help: https://gitlab.com/user-name/repository-name/-/releases/new, I mean, it’s not exactly the same as the GitHub does, but it’s something :)

201flaviosilva avatar Jul 04 '22 23:07 201flaviosilva