We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 057ac08 commit 59be562Copy full SHA for 59be562
src/prActions.ts
@@ -6,7 +6,11 @@ const execute = async (
6
pr: { number: number; user: { login: string } },
7
) => {
8
if (label === "giteabot/update-branch") {
9
- await updateBranch(pr);
+ const err = await updateBranch(pr);
10
+ if (err) {
11
+ await addComment(pr.number, `I failed to update the branch because of the following error: ${err.message} Sorry about that. :tea:`);
12
+ return;
13
+ }
14
await removeLabel(pr.number, "giteabot/update-branch");
15
}
16
};
@@ -27,6 +31,7 @@ export const updateBranch = async (
27
31
`Failed to sync PR #${pr.number}`,
28
32
);
29
33
console.error(JSON.stringify(body));
34
+ return Error(JSON.stringify(body?.message));
30
35
36
37
console.info(
0 commit comments