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 8c1568cCopy full SHA for 8c1568c
src/prActions.ts
@@ -6,7 +6,14 @@ 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(
12
+ pr.number,
13
+ `I failed to update the branch because of the following error: ${err.message} Sorry about that. :tea:`,
14
+ );
15
+ return;
16
+ }
17
await removeLabel(pr.number, "giteabot/update-branch");
18
}
19
};
@@ -27,6 +34,7 @@ export const updateBranch = async (
27
34
`Failed to sync PR #${pr.number}`,
28
35
);
29
36
console.error(JSON.stringify(body));
37
+ return Error(JSON.stringify(body?.message));
30
38
31
39
32
40
console.info(
0 commit comments