Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
DE7924 committed Dec 10, 2024
1 parent a98efed commit b17b1b5
Show file tree
Hide file tree
Showing 21 changed files with 30,227 additions and 34,451 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ lib/
dist/
node_modules/
coverage/
docs/
10 changes: 6 additions & 4 deletions __tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
import * as main from "../src/main";

// Mock the action's entrypoint
const runMock = jest.spyOn(main, "run").mockImplementation();
const runMock = jest
.spyOn(main as { run: () => void }, "run")
.mockImplementation();

describe("index", () => {
it("calls run when imported", () => {
// eslint-disable-next-line @typescript-eslint/no-require-imports
require("../src/index");
it("calls run when imported", async () => {
// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-unsafe-call
await import("../src/index");

expect(runMock).toHaveBeenCalled();
});
Expand Down
206 changes: 206 additions & 0 deletions custom-elements.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
{
"schemaVersion": "1.0.0",
"readme": "",
"modules": [
{
"kind": "javascript-module",
"path": "dist/index.js",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "dist/sourcemap-register.js",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "src/index.ts",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "src/main.ts",
"declarations": [
{
"kind": "function",
"name": "run",
"return": {
"type": {
"text": "Promise<void>"
}
},
"description": "The main function for the action."
}
],
"exports": [
{
"kind": "js",
"name": "run",
"declaration": {
"name": "run",
"module": "src/main.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "coverage/lcov-report/block-navigation.js",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "coverage/lcov-report/prettify.js",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "coverage/lcov-report/sorter.js",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "src/scripts/analyze.ts",
"declarations": [
{
"kind": "function",
"name": "analyze",
"return": {
"type": {
"text": "Promise<stepResponse>"
}
}
}
],
"exports": [
{
"kind": "js",
"name": "analyze",
"declaration": {
"name": "analyze",
"module": "src/scripts/analyze.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/scripts/comment.ts",
"declarations": [
{
"kind": "function",
"name": "comment",
"return": {
"type": {
"text": "Promise<stepResponse>"
}
},
"parameters": [
{
"name": "ocotokit",
"type": {
"text": "ReturnType<typeof getOctokit>"
}
},
{
"name": "context",
"type": {
"text": "Context"
}
},
{
"name": "analyzeStr",
"type": {
"text": "stepResponse | undefined"
}
},
{
"name": "runCodeFormattingStr",
"type": {
"text": "stepResponse | undefined"
}
},
{
"name": "testingStr",
"type": {
"text": "stepResponse | undefined"
}
}
]
}
],
"exports": [
{
"kind": "js",
"name": "comment",
"declaration": {
"name": "comment",
"module": "src/scripts/comment.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/scripts/coverage.ts",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "src/scripts/formatting.ts",
"declarations": [
{
"kind": "function",
"name": "formatting",
"return": {
"type": {
"text": "Promise<stepResponse>"
}
}
}
],
"exports": [
{
"kind": "js",
"name": "formatting",
"declaration": {
"name": "formatting",
"module": "src/scripts/formatting.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/scripts/testing.ts",
"declarations": [
{
"kind": "function",
"name": "testing",
"return": {
"type": {
"text": "Promise<stepResponse>"
}
}
}
],
"exports": [
{
"kind": "js",
"name": "testing",
"declaration": {
"name": "testing",
"module": "src/scripts/testing.ts"
}
}
]
}
]
}
Loading

0 comments on commit b17b1b5

Please sign in to comment.