Skip to content
Snippets Groups Projects
Unverified Commit c8c0fad0 authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix(pr): include uncompiled pr body note if failing (#18000)

parent ed024fc8
No related branches found
No related tags found
No related merge requests found
......@@ -37,11 +37,11 @@ describe('workers/repository/update/pr/body/notes', () => {
{
manager: 'some-manager',
branchName: 'branch',
prBodyNotes: ['NOTE'],
prBodyNotes: ['{{NOTE}}'],
},
],
});
expect(res).not.toContain('NOTE');
expect(res).toContain('{{NOTE}}');
});
it('handles extra notes', () => {
......
......@@ -15,7 +15,8 @@ export function getPrNotes(config: BranchConfig): string {
notes.push(res);
}
} catch (err) {
logger.warn({ note }, 'Error compiling upgrade note');
logger.debug({ err }, 'Error compiling upgrade note');
notes.push(note);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment