mirror of
https://github.com/kiegroup/git-backporting.git
synced 2025-07-18 12:38:26 +02:00
feat: implement error notification as pr comment
This commit is contained in:
parent
6042bcc40b
commit
c02522a9f1
27 changed files with 432 additions and 35 deletions
11
src/service/runner/runner-util.ts
Normal file
11
src/service/runner/runner-util.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { MESSAGE_ERROR_PLACEHOLDER } from "@bp/service/configs/configs.types";
|
||||
|
||||
/**
|
||||
* Inject the error message in the provided `message`.
|
||||
* This is inject in place of the MESSAGE_ERROR_PLACEHOLDER placeholder
|
||||
* @param message string that needs to be updated
|
||||
* @param errMsg the error message that needs to be injected
|
||||
*/
|
||||
export const injectError = (message: string, errMsg: string): string => {
|
||||
return message.replace(MESSAGE_ERROR_PLACEHOLDER, errMsg);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue