Skip to content

Commit

Permalink
- ci - Update shell-function shDirHttplinkValidate() with user-agent-…
Browse files Browse the repository at this point in the history
…header.
  • Loading branch information
kaizhu256 committed Mar 25, 2024
1 parent 0872721 commit daa56c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions jslint_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,11 @@ import moduleHttps from "https";
return "";
}
dict[url] = true;
req = moduleHttps.request(url, function (res) {
req = moduleHttps.request(url, {
headers: {
"user-agent": "undefined"
}
}, function (res) {
console.error(
"shDirHttplinkValidate " + res.statusCode + " " + url
);
Expand Down Expand Up @@ -1007,9 +1011,6 @@ shGitPullrequestCleanup() {(set -e
shGitPullrequest() {(set -e
# this function will create-and-push a github-pull-commit to origin/alpha
node --input-type=module --eval '
import moduleAssert from "assert";
import moduleChildProcess from "child_process";
import moduleFs from "fs";
// init debugInline
(function () {
let consoleError = console.error;
Expand All @@ -1023,6 +1024,9 @@ import moduleFs from "fs";
return argList[0];
};
}());
import moduleAssert from "assert";
import moduleChildProcess from "child_process";
import moduleFs from "fs";
(async function () {
let branchCheckpoint = process.argv[2] || "HEAD";
let branchMerge = process.argv[1] || "beta";
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"bin": {
"jslint": "./jslint.mjs"
"jslint": "jslint.mjs"
},
"bugs": {
"url": "https://github.com/jslint-org/jslint/issues"
Expand All @@ -26,7 +26,7 @@
"name": "@jslint-org/jslint",
"repository": {
"type": "git",
"url": "https://github.com/jslint-org/jslint.git"
"url": "git+https://github.com/jslint-org/jslint.git"
},
"scripts": {
"test": "node jslint.mjs v8_coverage_report=.artifact/coverage node test.mjs",
Expand Down

0 comments on commit daa56c6

Please sign in to comment.