chore: gate canonical ECC release identity (#1991)

This commit is contained in:
Affaan Mustafa
2026-05-19 06:42:17 -04:00
committed by GitHub
parent af9b2c1c4c
commit 8141f6904f
31 changed files with 206 additions and 113 deletions

View File

@@ -102,10 +102,10 @@ function runTests() {
try {
const shimPath = writeGhShim(rootDir, {
[discussionEnabledGhKey('affaan-m', 'everything-claude-code')]: {
[discussionEnabledGhKey('affaan-m', 'ECC')]: {
data: { repository: { hasDiscussionsEnabled: true } }
},
[discussionGhKey('affaan-m', 'everything-claude-code')]: {
[discussionGhKey('affaan-m', 'ECC')]: {
data: {
repository: {
hasDiscussionsEnabled: true,
@@ -142,7 +142,7 @@ function runTests() {
const parsed = JSON.parse(run([
'--json',
'--repo',
'affaan-m/everything-claude-code'
'affaan-m/ECC'
], {
cwd: rootDir,
env: {
@@ -165,10 +165,10 @@ function runTests() {
try {
const shimPath = writeGhShim(rootDir, {
[discussionEnabledGhKey('affaan-m', 'everything-claude-code')]: {
[discussionEnabledGhKey('affaan-m', 'ECC')]: {
data: { repository: { hasDiscussionsEnabled: true } }
},
[discussionGhKey('affaan-m', 'everything-claude-code')]: {
[discussionGhKey('affaan-m', 'ECC')]: {
data: {
repository: {
hasDiscussionsEnabled: true,
@@ -195,7 +195,7 @@ function runTests() {
const result = runProcess([
'--json',
'--repo',
'affaan-m/everything-claude-code',
'affaan-m/ECC',
'--exit-code'
], {
cwd: rootDir,
@@ -220,10 +220,10 @@ function runTests() {
try {
const shimPath = writeGhShim(rootDir, {
[discussionEnabledGhKey('affaan-m', 'everything-claude-code')]: {
[discussionEnabledGhKey('affaan-m', 'ECC')]: {
data: { repository: { hasDiscussionsEnabled: true } }
},
[discussionGhKey('affaan-m', 'everything-claude-code')]: {
[discussionGhKey('affaan-m', 'ECC')]: {
data: {
repository: {
hasDiscussionsEnabled: true,
@@ -237,7 +237,7 @@ function runTests() {
'--write',
outputPath,
'--repo',
'affaan-m/everything-claude-code'
'affaan-m/ECC'
], {
cwd: rootDir,
env: { ECC_GH_SHIM: shimPath }

View File

@@ -83,11 +83,12 @@ function seedRepo(rootDir, overrides = {}) {
'docs/releases/2.0.0-rc.1/publication-readiness.md': 'Claude plugin Codex plugin release-name-plugin-publication-checklist-2026-05-18.md',
'docs/releases/2.0.0-rc.1/naming-and-publication-matrix.md': 'Claude plugin Codex plugin npm package Publication Paths',
'docs/releases/2.0.0-rc.1/release-name-plugin-publication-checklist-2026-05-18.md': [
'Everything Claude Code (ECC)',
'Ship `v2.0.0-rc.1` as **ECC**',
'affaan-m/ECC',
'ecc-universal',
'claude plugin tag .claude-plugin --dry-run',
'codex plugin marketplace add',
'Do not rename the repo or package until rc.1 is published'
'Do not rename the npm package until rc.1 is published'
].join('\n'),
'docs/releases/2.0.0-rc.1/preview-pack-manifest.md': [
'publication-readiness.md release-notes.md quickstart.md',
@@ -228,7 +229,7 @@ function runTests() {
'--allow-untracked',
'docs/drafts/',
'--repo',
'affaan-m/everything-claude-code',
'affaan-m/ECC',
'--generated-at',
'2026-05-15T00:00:00.000Z'
]);
@@ -237,7 +238,7 @@ function runTests() {
assert.strictEqual(parsed.root, path.resolve(rootDir));
assert.strictEqual(parsed.skipGithub, true);
assert.deepStrictEqual(parsed.allowUntracked, ['docs/drafts/']);
assert.deepStrictEqual(parsed.repos, ['affaan-m/everything-claude-code']);
assert.deepStrictEqual(parsed.repos, ['affaan-m/ECC']);
assert.strictEqual(parsed.generatedAt, '2026-05-15T00:00:00.000Z');
assert.throws(() => parseArgs(['node', 'script', '--format', 'xml']), /Invalid format/);

View File

@@ -177,7 +177,7 @@ function runTests() {
`--root=${rootDir}`,
'--json',
'--repo',
'affaan-m/everything-claude-code',
'affaan-m/ECC',
'--max-open-prs',
'5',
'--max-open-issues',
@@ -188,7 +188,7 @@ function runTests() {
assert.strictEqual(parsed.format, 'json');
assert.strictEqual(parsed.root, path.resolve(rootDir));
assert.deepStrictEqual(parsed.repos, ['affaan-m/everything-claude-code']);
assert.deepStrictEqual(parsed.repos, ['affaan-m/ECC']);
assert.strictEqual(parsed.thresholds.maxOpenPrs, 5);
assert.strictEqual(parsed.thresholds.maxOpenIssues, 6);
assert.deepStrictEqual(parsed.allowUntracked, ['docs/drafts/']);
@@ -256,12 +256,12 @@ function runTests() {
try {
seedRepo(projectRoot);
const shimPath = writeGhShim(projectRoot, {
'pr list --repo affaan-m/everything-claude-code --state open --json number,title,isDraft,mergeStateStatus,updatedAt,url,author': [],
'issue list --repo affaan-m/everything-claude-code --state open --json number,title,updatedAt,url,author,labels': [],
[discussionEnabledGhKey('affaan-m', 'everything-claude-code')]: {
'pr list --repo affaan-m/ECC --state open --json number,title,isDraft,mergeStateStatus,updatedAt,url,author': [],
'issue list --repo affaan-m/ECC --state open --json number,title,updatedAt,url,author,labels': [],
[discussionEnabledGhKey('affaan-m', 'ECC')]: {
data: { repository: { hasDiscussionsEnabled: true } }
},
[discussionGhKey('affaan-m', 'everything-claude-code')]: {
[discussionGhKey('affaan-m', 'ECC')]: {
data: {
repository: {
hasDiscussionsEnabled: true,
@@ -289,7 +289,7 @@ function runTests() {
'--format=json',
`--root=${projectRoot}`,
'--repo',
'affaan-m/everything-claude-code'
'affaan-m/ECC'
], {
cwd: projectRoot,
env: {
@@ -325,12 +325,12 @@ function runTests() {
author: { login: 'contributor' }
}));
const shimPath = writeGhShim(projectRoot, {
'pr list --repo affaan-m/everything-claude-code --state open --json number,title,isDraft,mergeStateStatus,updatedAt,url,author': prs,
'issue list --repo affaan-m/everything-claude-code --state open --json number,title,updatedAt,url,author,labels': [],
[discussionEnabledGhKey('affaan-m', 'everything-claude-code')]: {
'pr list --repo affaan-m/ECC --state open --json number,title,isDraft,mergeStateStatus,updatedAt,url,author': prs,
'issue list --repo affaan-m/ECC --state open --json number,title,updatedAt,url,author,labels': [],
[discussionEnabledGhKey('affaan-m', 'ECC')]: {
data: { repository: { hasDiscussionsEnabled: true } }
},
[discussionGhKey('affaan-m', 'everything-claude-code')]: {
[discussionGhKey('affaan-m', 'ECC')]: {
data: {
repository: {
hasDiscussionsEnabled: true,
@@ -358,7 +358,7 @@ function runTests() {
'--format=json',
`--root=${projectRoot}`,
'--repo',
'affaan-m/everything-claude-code',
'affaan-m/ECC',
'--max-open-prs',
'2'
], {