feat: persist account group display order and backup preferences
This commit is contained in:
1 parent
20643b366f
commit
1af5edbadc
28 files changed
+379
-47
No files matched your search
@@ -11,7 +11,13 @@ if (
|
||||
names.some((n) => /\.(db|sqlite|log)$/.test(n))
|
||||
)
|
||||
throw Error('Blocked: forbidden file staged');
|
||||
const diff = git('diff', '--cached', '--no-ext-diff');
|
||||
// Review newly introduced content; removing a secret or changing a numeric example
|
||||
// must not be blocked by the removed lines or unchanged diff context.
|
||||
const diff = git('diff', '--cached', '--no-ext-diff', '--unified=0')
|
||||
.split('\n')
|
||||
.filter((line) => line.startsWith('+') && !line.startsWith('+++ '))
|
||||
.map((line) => line.slice(1))
|
||||
.join('\n');
|
||||
if (existsSync('apps/api/.env')) {
|
||||
const text = readFileSync('apps/api/.env', 'utf8'),
|
||||
value = text.match(/^DATABASE_URL=["']?([^"'\r\n]+)/m)?.[1];
|
||||
|
||||
Reference in new issue
Block a user