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

Failed step Publish because Body is too Long #622

Open
ndtrung1307 opened this issue Apr 28, 2023 · 6 comments
Open

Failed step Publish because Body is too Long #622

ndtrung1307 opened this issue Apr 28, 2023 · 6 comments

Comments

@ndtrung1307
Copy link

Hi,
I'm config to use semantic-release to automate release for my Repo. But I met an issue when the first time I run release because the changelog store a lot of commit( Because it's first time release).
Error message is below:
z4302864069420_fd41c9a41d22a920c04172a5200949ae

Any suggestion or config option for @semantic-release/github to minimise the body when call API github createRelease ?

@KMDEV99
Copy link

KMDEV99 commented Jan 9, 2024

Having same issue here.
@ndtrung1307 Have You found any solution yet?

@seansilvestri
Copy link

I'm having the same issue here. Is there an option to truncate the excess?

@travi
Copy link
Member

travi commented Jul 11, 2024

i'm sure this is something that could be protected against, but has not been a priority since this is only the third request we've seen in the life of the project that i'm aware of. that limit is quite large. could you help us understand what is in your release notes to make the request so large?

@seansilvestri
Copy link

seansilvestri commented Jul 11, 2024

The release notes contain the list of all prior PRs and commits in the repo, which is large.
For more context, this is a mono repo for terraform modules, so the issue now arises with introducing a new module.
Used this as inspiration: https://github.com/tjtharrison/demo-multiple-terraform-modules
We primarily need the versioning aspect, not the release notes since they aren't meaningful in our context.
Can we leave them out as a whole?

@travi
Copy link
Member

travi commented Jul 12, 2024

i have to start with a note to provide context for my comments. semantic-release does not officially support monorepos, but we try not to prevent using a monorepo structure with community supported additions like semantic-release-monorepo. that said, we don't provide support here for monorepo specific details. are you using one of the community supported monorepo addons? if so you may be able to get more support for the monorepo details in that repo.

The release notes contain the list of all prior PRs and commits in the repo, which is large

are you making sure that appropriate tags exist in the history of the repo for the previous existing version when you add a new module? the format of the tag might differ based on the monorepo addon that you are using for your monorepo structure, especially if you are versioning the modules independently (which we recommend in order for the versions for each module can be semantic). if the previous existing tag is in place, semantic-release will only include release notes about the commits since that previous version

i could see putting in a safeguard to avoid going beyond the limit, but i dont think you want all of those previous details included in your new releases anyway, right? if this is something that you can avoid, that could be for the best since i dont know when we will be able to prioritize such a safeguard

@travi
Copy link
Member

travi commented Aug 2, 2024

please also see my comments on semantic-release/git#263 (comment). while the detail about committing during a release is not related to this situation, i expect several of the other details are. i'm interested to understand if any of the suggestions there help folks avoid this situation until we can determine an appropriate action here

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

No branches or pull requests

4 participants