TelegramPWA/dev/createStatoscopeComment.js
2025-06-04 20:36:48 +02:00

13 lines
395 B
JavaScript

import { readFileSync } from 'fs';
import template from '../.github/workflows/statoscope-comment.js';
import createPRComment from './createPRComment.js';
export default async ({ github, context }) => {
const data = JSON.parse(readFileSync('result.json', 'utf8'));
data.prNumber = context.issue.number;
const body = template(data);
await createPRComment({ github, context, body });
};