mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-27 04:45:08 +01:00
14 lines
417 B
JavaScript
14 lines
417 B
JavaScript
/* eslint-env node */
|
|
|
|
const fs = require('fs');
|
|
const createPRComment = require('./createPRComment');
|
|
const template = require('../.github/workflows/statoscope-comment');
|
|
|
|
module.exports = async ({ github, context }) => {
|
|
const data = JSON.parse(fs.readFileSync('result.json', 'utf8'));
|
|
data.prNumber = context.issue.number;
|
|
const body = template(data);
|
|
|
|
await createPRComment({ github, context, body });
|
|
};
|