File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1560,7 +1560,9 @@ function run() {
1560
1560
if ( isPullRequest ) {
1561
1561
const pullRequest = yield githubHelper . getPull ( github . context . repo , github . context . payload . issue . number ) ;
1562
1562
// Truncate the body to keep the size of the payload under the max
1563
- pullRequest . body = pullRequest . body . slice ( 0 , 1000 ) ;
1563
+ if ( pullRequest . body ) {
1564
+ pullRequest . body = pullRequest . body . slice ( 0 , 1000 ) ;
1565
+ }
1564
1566
clientPayload [ 'pull_request' ] = pullRequest ;
1565
1567
}
1566
1568
// Dispatch for each matching configuration
Original file line number Diff line number Diff line change @@ -164,7 +164,9 @@ async function run(): Promise<void> {
164
164
github . context . payload . issue . number
165
165
)
166
166
// Truncate the body to keep the size of the payload under the max
167
- pullRequest . body = pullRequest . body . slice ( 0 , 1000 )
167
+ if ( pullRequest . body ) {
168
+ pullRequest . body = pullRequest . body . slice ( 0 , 1000 )
169
+ }
168
170
clientPayload [ 'pull_request' ] = pullRequest
169
171
}
170
172
You can’t perform that action at this time.
0 commit comments