Skip to content

Commit b4a17f7

Browse files
committed
Add httpx_proxy support
Signed-off-by: adshao <tjusgj@gmail.com>
1 parent 3f469b0 commit b4a17f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39226,7 +39226,7 @@ async function run() {
3922639226
if (content == fullReviewComment) {
3922739227
// Get the content of the pull request
3922839228
if (!code) {
39229-
const response = await axios.get(issue.pull_request.diff_url, configWithProxy());
39229+
const response = await axios.get(issue.pull_request.diff_url, configWithProxy({}));
3923039230
code = response.data;
3923139231
}
3923239232

@@ -39240,7 +39240,7 @@ async function run() {
3924039240
if (programmingLanguage == 'auto') {
3924139241
// Get the content of the pull request
3924239242
if (!code) {
39243-
const response = await axios.get(issue.pull_request.diff_url, configWithProxy());
39243+
const response = await axios.get(issue.pull_request.diff_url, configWithProxy({}));
3924439244
code = response.data;
3924539245
}
3924639246
const detectedLanguage = detect(code);

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async function run() {
4040
if (content == fullReviewComment) {
4141
// Get the content of the pull request
4242
if (!code) {
43-
const response = await axios.get(issue.pull_request.diff_url, configWithProxy());
43+
const response = await axios.get(issue.pull_request.diff_url, configWithProxy({}));
4444
code = response.data;
4545
}
4646

@@ -54,7 +54,7 @@ async function run() {
5454
if (programmingLanguage == 'auto') {
5555
// Get the content of the pull request
5656
if (!code) {
57-
const response = await axios.get(issue.pull_request.diff_url, configWithProxy());
57+
const response = await axios.get(issue.pull_request.diff_url, configWithProxy({}));
5858
code = response.data;
5959
}
6060
const detectedLanguage = detect(code);

0 commit comments

Comments
 (0)