409e92d6ae
Dependency Compatibility Check / Fresh Install Dependency Check (push) Waiting to run
Build and Publish n8n Docker Image / test-image (push) Blocked by required conditions
Build and Publish n8n Docker Image / build-and-push (push) Waiting to run
Build and Publish n8n Docker Image / create-release (push) Blocked by required conditions
Build and Push Docker Images / Build Docker Image (push) Has been cancelled
Build and Push Docker Images / Build Railway Docker Image (push) Has been cancelled
Automated Release / Detect Version Change (push) Waiting to run
Automated Release / Generate Release Notes (push) Blocked by required conditions
Automated Release / Create GitHub Release (push) Blocked by required conditions
Automated Release / Package MCPB Bundle (push) Blocked by required conditions
Automated Release / Build and Verify (push) Blocked by required conditions
Automated Release / Publish to NPM (push) Blocked by required conditions
Automated Release / Build and Push Docker Images (push) Blocked by required conditions
Secret Scan / secretlint (push) Waiting to run
Test Suite / test (push) Waiting to run
Test Suite / cjs-runtime (push) Waiting to run
Test Suite / publish-results (push) Blocked by required conditions
Automated Release / Update Documentation (push) Blocked by required conditions
Automated Release / Notify Release Completion (push) Blocked by required conditions
46 lines
1.1 KiB
JavaScript
46 lines
1.1 KiB
JavaScript
#!/usr/bin/env node
|
|
|
|
/**
|
|
* Generate release notes for the initial release
|
|
* Used by GitHub Actions when no previous tag exists
|
|
*/
|
|
|
|
const { execSync } = require('child_process');
|
|
|
|
function generateInitialReleaseNotes(version) {
|
|
try {
|
|
// Get total commit count
|
|
const commitCount = execSync('git rev-list --count HEAD', { encoding: 'utf8' }).trim();
|
|
|
|
// Generate release notes
|
|
const releaseNotes = [
|
|
'### 🎉 Initial Release',
|
|
'',
|
|
`This is the initial release of n8n-mcp v${version}.`,
|
|
'',
|
|
'---',
|
|
'',
|
|
'**Release Statistics:**',
|
|
`- Commit count: ${commitCount}`,
|
|
'- First release setup'
|
|
];
|
|
|
|
return releaseNotes.join('\n');
|
|
|
|
} catch (error) {
|
|
console.error(`Error generating initial release notes: ${error.message}`);
|
|
return `Failed to generate initial release notes: ${error.message}`;
|
|
}
|
|
}
|
|
|
|
// Parse command line arguments
|
|
const version = process.argv[2];
|
|
|
|
if (!version) {
|
|
console.error('Usage: generate-initial-release-notes.js <version>');
|
|
process.exit(1);
|
|
}
|
|
|
|
const releaseNotes = generateInitialReleaseNotes(version);
|
|
console.log(releaseNotes);
|