Skip to content

Commit

Permalink
Update message formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
iansu committed Aug 18, 2020
1 parent 1fa2cfe commit 5707966
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/format-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ const formatMessage = (output: string, existingComment: boolean): string | undef
}

if (title) {
message = message.replace('Apollo Service Check\n\n', `Apollo Schema Check\n\n#### ${title}\n`);
message = message.replace(
'### Apollo Service Check\n',
`### Apollo Schema Check\n#### ${title}\n`
);
} else {
message = message.replace('Apollo Service Check', `Apollo Schema Check`);
message = message.replace('### Apollo Service Check', `### Apollo Schema Check`);
}

debug('message', message);
Expand Down

0 comments on commit 5707966

Please sign in to comment.