feat(update): clean up flake inputs log
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-11-30 20:53:06 -05:00
parent 2c94bc9809
commit 1ae537b572

View file

@ -27,8 +27,14 @@ export const updateFlakeInputs = () => {
// Shorten git revs to help readability // Shorten git revs to help readability
.split('\n') .split('\n')
.map((l) => l .map((l) => l
.replace(/.{33}\?narHash=sha256[^']*/, '') .replace(
.replace(/&rev=(.{7})[^'&]*/, (_, backref) => `&rev=${backref}`)) /\/(.{40})\?narHash=sha256[^']*(.*)/,
(_, backref1, backref2) => `${backref2} rev: ${backref1}`,
)
.replace(
/\?ref.*&rev=(.{40})[^'&]*(.*)/,
(_, backref1, backref2) => `${backref2} rev: ${backref1}`,
))
.join('\n'); .join('\n');
return output; return output;