File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -39193,6 +39193,7 @@ const httpsProxyAgent = __nccwpck_require__(81908);
39193
39193
function configWithProxy(config) {
39194
39194
var c = config || {};
39195
39195
if (process.env.HTTPS_PROXY) {
39196
+ core.debug(`use proxy: ${process.env.HTTPS_PROXY}`);
39196
39197
c.proxy = false;
39197
39198
c.httpsAgent = new httpsProxyAgent(process.env.HTTPS_PROXY);
39198
39199
return c;
@@ -39236,12 +39237,13 @@ async function run() {
39236
39237
var content = comment.body;
39237
39238
39238
39239
const url = `${githubBaseURL}/repos/${repoOwner}/${repoName}/pulls/${prNumber}`;
39239
- var response = await axios.get(url, configWithProxy({
39240
+ core.debug(`diff url: ${url}`);
39241
+ var response = await axios.get(url, {
39240
39242
headers: {
39241
39243
Authorization: `Bearer ${githubToken}`,
39242
39244
Accept: 'application/vnd.github.diff'
39243
39245
}
39244
- })) ;
39246
+ });
39245
39247
const code = response.data;
39246
39248
const files = parsePullRequestDiff(code);
39247
39249
core.debug(`diff files: ${files}`);
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ const httpsProxyAgent = require('https-proxy-agent');
7
7
function configWithProxy ( config ) {
8
8
var c = config || { } ;
9
9
if ( process . env . HTTPS_PROXY ) {
10
+ core . debug ( `use proxy: ${ process . env . HTTPS_PROXY } ` ) ;
10
11
c . proxy = false ;
11
12
c . httpsAgent = new httpsProxyAgent ( process . env . HTTPS_PROXY ) ;
12
13
return c ;
@@ -50,12 +51,13 @@ async function run() {
50
51
var content = comment . body ;
51
52
52
53
const url = `${ githubBaseURL } /repos/${ repoOwner } /${ repoName } /pulls/${ prNumber } ` ;
53
- var response = await axios . get ( url , configWithProxy ( {
54
+ core . debug ( `diff url: ${ url } ` ) ;
55
+ var response = await axios . get ( url , {
54
56
headers : {
55
57
Authorization : `Bearer ${ githubToken } ` ,
56
58
Accept : 'application/vnd.github.diff'
57
59
}
58
- } ) ) ;
60
+ } ) ;
59
61
const code = response . data ;
60
62
const files = parsePullRequestDiff ( code ) ;
61
63
core . debug ( `diff files: ${ files } ` ) ;
You can’t perform that action at this time.
0 commit comments