mirror of
https://github.com/github/codeql-action.git
synced 2026-01-06 22:50:17 +08:00
Compare commits
1 Commits
default-se
...
aeisenber/
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b74202b022 |
2
lib/util.js
generated
2
lib/util.js
generated
@@ -17,7 +17,7 @@ const apiCompatibility = __importStar(require("./api-compatibility.json"));
|
|||||||
/**
|
/**
|
||||||
* The URL for github.com.
|
* The URL for github.com.
|
||||||
*/
|
*/
|
||||||
exports.GITHUB_DOTCOM_URL = "https://github.com";
|
exports.GITHUB_DOTCOM_URL = "https://github.com/";
|
||||||
/**
|
/**
|
||||||
* Get the extra options for the codeql commands.
|
* Get the extra options for the codeql commands.
|
||||||
*/
|
*/
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
8
lib/util.test.js
generated
8
lib/util.test.js
generated
@@ -103,10 +103,10 @@ ava_1.default("getExtraOptionsEnvParam() fails on invalid JSON", (t) => {
|
|||||||
process.env.CODEQL_ACTION_EXTRA_OPTIONS = origExtraOptions;
|
process.env.CODEQL_ACTION_EXTRA_OPTIONS = origExtraOptions;
|
||||||
});
|
});
|
||||||
ava_1.default("parseGithubUrl", (t) => {
|
ava_1.default("parseGithubUrl", (t) => {
|
||||||
t.deepEqual(util.parseGithubUrl("github.com"), "https://github.com");
|
t.deepEqual(util.parseGithubUrl("github.com"), "https://github.com/");
|
||||||
t.deepEqual(util.parseGithubUrl("https://github.com"), "https://github.com");
|
t.deepEqual(util.parseGithubUrl("https://github.com"), "https://github.com/");
|
||||||
t.deepEqual(util.parseGithubUrl("https://api.github.com"), "https://github.com");
|
t.deepEqual(util.parseGithubUrl("https://api.github.com/"), "https://github.com/");
|
||||||
t.deepEqual(util.parseGithubUrl("https://github.com/foo/bar"), "https://github.com");
|
t.deepEqual(util.parseGithubUrl("https://github.com/foo/bar"), "https://github.com/");
|
||||||
t.deepEqual(util.parseGithubUrl("github.example.com"), "https://github.example.com/");
|
t.deepEqual(util.parseGithubUrl("github.example.com"), "https://github.example.com/");
|
||||||
t.deepEqual(util.parseGithubUrl("https://github.example.com"), "https://github.example.com/");
|
t.deepEqual(util.parseGithubUrl("https://github.example.com"), "https://github.example.com/");
|
||||||
t.deepEqual(util.parseGithubUrl("https://api.github.example.com"), "https://github.example.com/");
|
t.deepEqual(util.parseGithubUrl("https://api.github.example.com"), "https://github.example.com/");
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -126,15 +126,15 @@ test("getExtraOptionsEnvParam() fails on invalid JSON", (t) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test("parseGithubUrl", (t) => {
|
test("parseGithubUrl", (t) => {
|
||||||
t.deepEqual(util.parseGithubUrl("github.com"), "https://github.com");
|
t.deepEqual(util.parseGithubUrl("github.com"), "https://github.com/");
|
||||||
t.deepEqual(util.parseGithubUrl("https://github.com"), "https://github.com");
|
t.deepEqual(util.parseGithubUrl("https://github.com"), "https://github.com/");
|
||||||
t.deepEqual(
|
t.deepEqual(
|
||||||
util.parseGithubUrl("https://api.github.com"),
|
util.parseGithubUrl("https://api.github.com/"),
|
||||||
"https://github.com"
|
"https://github.com/"
|
||||||
);
|
);
|
||||||
t.deepEqual(
|
t.deepEqual(
|
||||||
util.parseGithubUrl("https://github.com/foo/bar"),
|
util.parseGithubUrl("https://github.com/foo/bar"),
|
||||||
"https://github.com"
|
"https://github.com/"
|
||||||
);
|
);
|
||||||
|
|
||||||
t.deepEqual(
|
t.deepEqual(
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export type Mode = "actions" | "runner";
|
|||||||
/**
|
/**
|
||||||
* The URL for github.com.
|
* The URL for github.com.
|
||||||
*/
|
*/
|
||||||
export const GITHUB_DOTCOM_URL = "https://github.com";
|
export const GITHUB_DOTCOM_URL = "https://github.com/";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the extra options for the codeql commands.
|
* Get the extra options for the codeql commands.
|
||||||
|
|||||||
Reference in New Issue
Block a user