Skip to content

Commit

Permalink
Max github issue body size
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanm8 authored May 12, 2022
1 parent 1569e0e commit 73fb385
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/github/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ const createUniqueIssue = async (repo: string, owner: string, octokit: Octokit,
}
return []
})
issue.body = issue.body.slice(0, 65550)
if (foundIssue.length > 0) {
return octokit.request("PATCH /repos/{owner}/{repo}/issues/{issue_number}", {
repo,
Expand Down Expand Up @@ -229,4 +230,4 @@ export {
createRelease,
getCompareURL,
getTagCompareURL
}
}

0 comments on commit 73fb385

Please sign in to comment.