ci: correctly detect status 400 as failure in `get-commit-range` (#29839)
PR Close #29839
This commit is contained in:
parent
ddadb8e22c
commit
6227d0bb3b
|
@ -141,7 +141,7 @@ function getJson(url) {
|
|||
const opts = {headers: {Accept: 'application/json'}};
|
||||
const onResponse = res => {
|
||||
const statusCode = res.statusCode || -1;
|
||||
const isSuccess = (200 <= statusCode) && (statusCode <= 400);
|
||||
const isSuccess = (200 <= statusCode) && (statusCode < 400);
|
||||
let responseText = '';
|
||||
|
||||
res.
|
||||
|
|
Loading…
Reference in New Issue