Long drift output just fail to be commented in PR
Oded-B opened this issue · 2 comments
Oded-B commented
Description
Long drift output just to be commented in PR
Expected Behaviour
Long drift output should be tructated and marked as such.
Actual Behaviour
Comment API calls fails:
time="2023-04-04T13:51:15Z" level=error msg="Could not comment in PR: err=POST https://github.com/api/v3/repos/###/k8s-helmfile/issues/8316/comments: 422 Validation Failed [{Resource:IssueComment Field:data Code:unprocessable Message:Body is too long (maximum is 65536 characters)}]\n&{0xc0002081b0 0 0 0 0 github.Rate{Limit:100000, Remaining:99543, Reset:github.Timestamp{2023-04-04 14:23:51 +0000 UTC}} 0001-01-01 00:00:00 +0000 UTC}\n" prNumber=8316 repo=###/k8s-helmfile
time="2023-04-04T13:51:15Z" level=error msg="Drift detection failed: err=POST https://github.com/api/v3/repos/###/k8s-helmfile/issues/8316/comments: 422 Validation Failed [{Resource:IssueComment Field:data Code:unprocessable Message:Body is too long (maximum is 65536 characters)}]\n" prNumber=8316 repo=###/k8s-helmfile
Please describe what happened instead.
Affected Version
Please provide the version number where this issue was encountered.
Steps to Reproduce
- First step
- Second step
- etc.
Checklist
- I have read the contributing guidelines
- I have verified this does not duplicate an existing issue
github-actions commented
Automatically marking issue as stale due to lack of activity
github-actions commented
Automatically closing this issue as stale