@@ -2,7 +2,6 @@ import * as core from '@actions/core'
2
2
import { wait } from './wait'
3
3
import { stdout } from 'process'
4
4
import { getFileFromBranch } from './utils/get-file-from-branch'
5
- import { diffOpenapiObject } from './utils/diff-openapi-object'
6
5
import fs from 'fs'
7
6
import * as http from 'http'
8
7
import { generateMarkdownDiff } from './utils/generate-markdown-diff'
@@ -71,22 +70,22 @@ export async function run(): Promise<void> {
71
70
)
72
71
: JSON . parse ( getFileFromBranch ( headBranch , filePath ) . toString ( ) )
73
72
74
- console . log ( 'baseFile' , baseFile )
75
- console . log ( 'headFile' , headFile )
73
+ // console.log('baseFile', baseFile)
74
+ // console.log('headFile', headFile)
76
75
77
76
const refResolvedBaseFile = resolveRefs ( baseFile , baseFile )
78
77
const refResolvedHeadFile = resolveRefs ( headFile , headFile )
79
78
80
- const diff = diffOpenapiObject ( refResolvedBaseFile , refResolvedHeadFile )
79
+ // const diff = diffOpenapiObject(refResolvedBaseFile, refResolvedHeadFile)
81
80
const markdownDiff = generateMarkdownDiff (
82
81
refResolvedBaseFile ,
83
82
refResolvedHeadFile
84
83
)
85
84
86
- console . log ( 'diff' , diff )
87
- const result = JSON . stringify ( diff , null , 2 )
85
+ // console.log('diff', diff)
86
+ // const result = JSON.stringify(diff, null, 2)
88
87
89
- console . log ( result )
88
+ // console.log(result)
90
89
91
90
if ( ! isLocal ) {
92
91
core . setOutput ( 'result' , markdownDiff )
0 commit comments