add new patch release process
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('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);
|
||||
Reference in New Issue
Block a user