feat: uncommitted changes UI

This commit is contained in:
zkldi
2022-09-21 21:33:38 +01:00
parent 76b59bf44d
commit c5c107a0b2
2 changed files with 203 additions and 48 deletions
@@ -82,6 +82,10 @@ router.get("/has-uncommitted-changes", async (req, res) => {
// local changes.
const hasUncommittedChanges = stdout
.split("\n")
// note that doing this properly is frustrating. This has false positives for
// routes that partially contain this route. I've ameliorated this slightly with
// a leading space, but that is not a proper solution.
.some((row) => / database-seeds\/collections/u.exec(row));
return res.status(200).json({