-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
23 lines (20 loc) · 800 Bytes
/
index.ts
File metadata and controls
23 lines (20 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// import * as fs from 'fs';
// import * as core from '@actions/core';
// import { getFilename, suggestFix } from './lib/langchain'
// (async () => {
// try {
// const file = process.env.BUILD_OUTPUT_FILE || core.getInput('build-output-file')
// const data = fs.readFileSync(file, 'utf8');
// /** 1. find the filename where error comes from */
// const filename = await getFilename(data);
// /** 2. find a fix for the error filename */
// if (filename !== 'FileNotFound') {
// const codeFix = await suggestFix(data);
// /** 3. commit change to file and open a PR from branch */
// fs.writeFileSync(filename, codeFix);
// }
// core.info('Successfully completed!');
// } catch (error: any) {
// core.setFailed(error.message);
// }
// })()