Np: Can't open github release page when release note is too long

Created on 17 Feb 2020  路  7Comments  路  Source: sindresorhus/np

Description

This is a limitation on github urls, seems about 8195 (including https://github.com)

here

Expected behavior

I think maybe we can copy the body to clipboard and open a url like this

https://github.com/sindresorhus/np/releases/new?body=<!--%20paste%20your%20release%20nodes%20here%20-->

Maybe new-github-release-url should also throw an error.

Most helpful comment

That means about a million characters. If your release notes are that long, this is the least of your problems 馃槤

All 7 comments

Can you submit a bug report to GitHub? They should really support longer URLs than that.

I don't think that solves the problem, even if github supports longer urls, the url length can still reach the browser's url length limits. In chrome about 2MB

Yes, but you're much less likely to hit the browser URL limit. So it's still worth sending a bug report.

OK, I'll let you know when they reply.

That means about a million characters. If your release notes are that long, this is the least of your problems 馃槤

Hmm, something similar just happened to me, but instead of opening this 414 Request-URI Too Large error, nothing was opened at all... The release had 110 commits since the previous one, so I wonder if that enough blew the size up.

By the way, of those, almost 100 were commits by Renovate bot, which I redacted from the release notes while doing it manually, since np didn't work. I was expecting to get the generated release and just delete those commits from it.

2021-03-19-133120_426x196

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bennycode picture bennycode  路  4Comments

doug-wade picture doug-wade  路  5Comments

xxczaki picture xxczaki  路  6Comments

nickthesing picture nickthesing  路  5Comments

koppor picture koppor  路  5Comments