Skip to content

Commit 903f861

Browse files
committed
Use OPENAI_PROXY
Signed-off-by: adshao <tjusgj@gmail.com>
1 parent 9e52ee3 commit 903f861

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ const httpsProxyAgent = require('https-proxy-agent');
66

77
function configWithProxy(config) {
88
var c = config || {};
9-
if (process.env.HTTPS_PROXY) {
10-
core.debug(`use proxy: ${process.env.HTTPS_PROXY}`);
9+
if (process.env.OPENAI_PROXY) {
10+
core.debug(`use proxy: ${process.env.OPENAI_PROXY}`);
1111
c.proxy = false;
12-
c.httpsAgent = new httpsProxyAgent(process.env.HTTPS_PROXY);
12+
c.httpsAgent = new httpsProxyAgent(process.env.OPENAI_PROXY);
1313
return c;
1414
}
1515
return c;
@@ -59,6 +59,7 @@ async function run() {
5959
}
6060
});
6161
const code = response.data;
62+
core.debug(`diff code: ${code}`);
6263
const files = parsePullRequestDiff(code);
6364
core.debug(`diff files: ${files}`);
6465

0 commit comments

Comments
 (0)