Skip to content

Commit 60e77d1

Browse files
committed
chore: improve error message on unreferenced commits
1 parent a6b8faf commit 60e77d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/proxy/processors/push-action/checkHiddenCommits.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ const exec = async (req: any, action: Action): Promise<Action> => {
5757
step.log(`Unreferenced commits: ${unreferenced.length}`);
5858

5959
step.setError(
60-
`Unreferenced commits in pack (${unreferenced.length}): ${unreferenced.join(', ')}`,
60+
`Unreferenced commits in pack (${unreferenced.length}): ${unreferenced.join(', ')}.\n` +
61+
`This usually happens when a branch was made from a commit that hasn't been approved and pushed to the remote.\n` +
62+
`Please get approval on the commits, push them and try again.`,
6163
);
6264
action.error = true;
6365
step.setContent(`Referenced: ${referenced.length}, Unreferenced: ${unreferenced.length}`);

0 commit comments

Comments
 (0)