refactor: hard-fork GSD -> MSD (Make Software Done)
Mechanical rename produced by scripts/msd-rename.cjs: gsd/Gsd/GSD -> msd/Msd/MSD across contents and paths, upstream package/repo coordinates -> @golem15/msd-core and golem15com/msd-core. Deep links into upstream history, sibling upstream packages, the GSD-2 import feature, CHANGELOG.md and .changeset/ are kept as-is. Hand edits on top: MSD block-letter banner and logos, LICENSE copyright line, package/plugin identity, regenerated lockfile, install-tree fixtures, derived registries and benchmark baseline; migration checksum baseline re-locked (MSD keeps its own install state, so no install had applied the old sums); sort-order and regex-escaped expectations in tests adjusted.
This commit is contained in:
@@ -32,7 +32,7 @@ function writeMock(tmpDir, name, content) {
|
||||
|
||||
describe('.githooks/pre-push enterprise email guard', () => {
|
||||
test('blocks push when any to-be-pushed commit matches local blocked regex', (t) => {
|
||||
const tmpDir = createTempDir('gsd-prepush-hook-');
|
||||
const tmpDir = createTempDir('msd-prepush-hook-');
|
||||
t.after(() => cleanup(tmpDir));
|
||||
|
||||
const mockGit = writeMock(tmpDir, 'git', `#!/usr/bin/env bash
|
||||
@@ -61,7 +61,7 @@ exit 1
|
||||
env: {
|
||||
...process.env,
|
||||
GIT_OVERRIDE: mockGit,
|
||||
GSD_BLOCKED_AUTHOR_REGEX: '@example-corp\\.com$',
|
||||
MSD_BLOCKED_AUTHOR_REGEX: '@example-corp\\.com$',
|
||||
},
|
||||
input: 'refs/heads/pr refs-local-sha refs/heads/pr refs-remote-sha\n',
|
||||
timeoutMs: HOOK_FANOUT_TIMEOUT_MS,
|
||||
@@ -71,7 +71,7 @@ exit 1
|
||||
});
|
||||
|
||||
test('allows push when to-be-pushed commits are non-enterprise emails', (t) => {
|
||||
const tmpDir = createTempDir('gsd-prepush-hook-');
|
||||
const tmpDir = createTempDir('msd-prepush-hook-');
|
||||
t.after(() => cleanup(tmpDir));
|
||||
|
||||
const mockGit = writeMock(tmpDir, 'git', `#!/usr/bin/env bash
|
||||
@@ -94,7 +94,7 @@ exit 1
|
||||
env: {
|
||||
...process.env,
|
||||
GIT_OVERRIDE: mockGit,
|
||||
GSD_BLOCKED_AUTHOR_REGEX: '@example-corp\\.com$',
|
||||
MSD_BLOCKED_AUTHOR_REGEX: '@example-corp\\.com$',
|
||||
},
|
||||
input: 'refs/heads/pr refs-local-sha refs/heads/pr refs-remote-sha\n',
|
||||
timeoutMs: HOOK_FANOUT_TIMEOUT_MS,
|
||||
|
||||
Reference in New Issue
Block a user