diff --git a/package.json b/package.json index deffe68a..cbc5521e 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "eslint-plugin-jest": "27.2.3", "jest": "29.6.1", "js-yaml": "4.1.0", - "prettier": "2.8.8", + "prettier": "3.0.0", "proxy": "2.1.1", "ts-jest": "29.1.1", "typescript": "5.1.6" diff --git a/src/run.ts b/src/run.ts index 82b0c3f0..4f2b3ed6 100644 --- a/src/run.ts +++ b/src/run.ts @@ -82,7 +82,7 @@ const handlePullRequest = async ( submitMetrics: SubmitMetrics, e: PullRequestEvent, context: GitHubContext, - inputs: Inputs + inputs: Inputs, ) => { core.info(`Got pull request ${e.action} event: ${e.pull_request.html_url}`) diff --git a/tests/fixtures.ts b/tests/fixtures.ts index 1858de1a..4a25ea03 100644 --- a/tests/fixtures.ts +++ b/tests/fixtures.ts @@ -17,7 +17,7 @@ const getExamplesByEventName = (eventName: E) => { const isTypeOfEventName = ( definition: WebhookDefinition, - eventName: TName + eventName: TName, ): definition is WebhookDefinition => definition.name === eventName export const examplePullRequestClosedEvent: PullRequestClosedEvent = (() => { diff --git a/tests/run.test.ts b/tests/run.test.ts index 579518b0..616d6c71 100644 --- a/tests/run.test.ts +++ b/tests/run.test.ts @@ -44,7 +44,7 @@ test('workflow_run with collectJobMetrics', async () => { collectJobMetrics: true, collectStepMetrics: true, sendPullRequestLabels: false, - } + }, ) expect(getOctokit).toHaveBeenCalledWith('GITHUB_TOKEN') expect(submitMetrics).toHaveBeenCalledTimes(4) @@ -68,7 +68,7 @@ test('workflow_run', async () => { collectJobMetrics: false, collectStepMetrics: false, sendPullRequestLabels: false, - } + }, ) expect(getOctokit).toHaveBeenCalledWith('GITHUB_TOKEN') expect(submitMetrics).toHaveBeenCalledTimes(2) @@ -92,7 +92,7 @@ test('pull_request_opened', async () => { collectJobMetrics: false, collectStepMetrics: false, sendPullRequestLabels: false, - } + }, ) expect(getOctokit).toHaveBeenCalledWith('GITHUB_TOKEN') expect(submitMetrics).toHaveBeenCalledTimes(2) @@ -117,7 +117,7 @@ test('pull_request_closed', async () => { collectJobMetrics: false, collectStepMetrics: false, sendPullRequestLabels: true, - } + }, ) expect(getOctokit).toHaveBeenCalledWith('GITHUB_TOKEN') expect(submitMetrics).toHaveBeenCalledTimes(2) diff --git a/yarn.lock b/yarn.lock index 70ced97a..49fee51c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5268,10 +5268,10 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== -prettier@2.8.8: - version "2.8.8" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" - integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== +prettier@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.0.tgz#e7b19f691245a21d618c68bc54dc06122f6105ae" + integrity sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g== pretty-format@^29.0.0, pretty-format@^29.4.1: version "29.4.1"