Files
backstage/.patches/create-pr-patch.js
Fredrik Adelöw 7455dae884 require the use of node prefix on native imports
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-01-26 13:22:53 +01:00

16 lines
410 B
JavaScript
Executable File

#!/usr/bin/env node
const fs = require('node:fs');
const path = require('node:path');
const prNumber = process.argv[2];
const description = process.argv.slice(3).join(' ');
if (!prNumber || !description) {
console.error('Usage: yarn patch-pr <pr-number> <description>');
process.exit(1);
}
const patchFilePath = path.join(__dirname, `pr-${prNumber}.txt`);
fs.writeFileSync(patchFilePath, description);