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

IssueComment Body is too long (maximum is 65536 characters) #1395

Open
xakraz opened this issue Aug 20, 2024 · 4 comments
Open

IssueComment Body is too long (maximum is 65536 characters) #1395

xakraz opened this issue Aug 20, 2024 · 4 comments

Comments

@xakraz
Copy link

xakraz commented Aug 20, 2024

We are using your GitHub action to implement a similar UX that Atlantis does for Terraform 😇

But we face in issue with this error

Error: Validation Failed: {"resource":"IssueComment","code":"unprocessable","field":"data","message":"Body is too long (maximum is 65536 characters)"}

💡 It would be nice to be able to split the comment in multiple ones if the body is too long.
Atlantis does that for very long Terraform plans output

@marocchino
Copy link
Owner

Finding a proper delimiter for strings exceeding 65536 seems a bit tricky. Please give me some time to think about it. If you have any good ideas, PRs are welcome.

@marocchino
Copy link
Owner

Personally, I don't think anyone would be able to read such a long comment, so it seems better to handle it as an artifact.

@ShankyJS
Copy link

ShankyJS commented Sep 5, 2024

Ups, I created a duplicate issue for this #1408.

I just encountered the same issue; It would be really nice to implement a feature similar to atlantis where the comments get chunked into multiple pieces if it's greater than the max size.

Definitely a +1 on this one.

@dudicoco
Copy link

@marocchino how about adding an input to the action - delimiter, the action can than determine if the body is too long and split the comment according to the delimiter.

Example:

    - name: Comment on PR
      uses: marocchino/[email protected]
      with:
        number: ${{ github.event.pull_request.number }}
        delimiter: ---
        message: |
            first comment
            ---
            second comment
            ---
            third comment

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