fix(OPS71): parse de --body-file no github-pr.mjs

This commit is contained in:
Francisco Solla 2026-08-19 18:14:05 -03:00
parent 24a867dfc3
commit 4bf6086caa

View file

@ -40,10 +40,10 @@ if (!head || !title) {
}
let body = flags.body
if (flags.bodyFile) {
if (flags['body-file']) {
try {
const { readFileSync } = await import('node:fs')
body = readFileSync(flags.bodyFile, 'utf8')
body = readFileSync(flags['body-file'], 'utf8')
} catch (error) {
console.error(`[github-pr] não consegui ler --body-file: ${error.message}`)
process.exit(1)