feat: add truncate warning to pull request body
This commit is contained in:
parent
21d8ea09d5
commit
9606fe7fd0
2 changed files with 8 additions and 2 deletions
|
@ -52,7 +52,10 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
|
|||
core.warning(
|
||||
`Pull request body is too long. Truncating to 65536 characters.`
|
||||
)
|
||||
inputs.body = inputs.body.substring(0, 65536)
|
||||
const truncateWarning = '...*[Pull request body truncated]*'
|
||||
inputs.body =
|
||||
inputs.body.substring(0, 65536 - truncateWarning.length) +
|
||||
truncateWarning
|
||||
}
|
||||
|
||||
// Get the repository path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue