From c911ebc1acca5952dcbb18793dda21d0122e9650 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 18 Feb 2020 10:40:10 +0000 Subject: [PATCH 1/2] Bump github-actions-problem-matcher-typings from 1.0.0 to 1.1.0 Bumps [github-actions-problem-matcher-typings](https://github.com/xt0rted/github-actions-problem-matcher-typings) from 1.0.0 to 1.1.0. - [Release notes](https://github.com/xt0rted/github-actions-problem-matcher-typings/releases) - [Commits](https://github.com/xt0rted/github-actions-problem-matcher-typings/compare/v1.0.0...v1.1.0) Signed-off-by: dependabot-preview[bot] --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 87d65d3..e92d6d6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1690,9 +1690,9 @@ } }, "github-actions-problem-matcher-typings": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/github-actions-problem-matcher-typings/-/github-actions-problem-matcher-typings-1.0.0.tgz", - "integrity": "sha512-oPhy9ukzShqF8bk4tmU73MdPeK241+MJKsFlXEy+BY57Hf7skUivhsDPjq+fpW4SEwjhL3bjdfv1S7xr1Kt2BQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/github-actions-problem-matcher-typings/-/github-actions-problem-matcher-typings-1.1.0.tgz", + "integrity": "sha512-WZ7uLuceo7VH7NgFqRqq1Mdhkt9yLuPYPVPe542ip4lDP84/GAqv8/NVdtzjaXRiFSc2dETSyGDQHkNaS13t+g==", "dev": true }, "glob": { diff --git a/package.json b/package.json index a0dd84f..6cdcfda 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@types/jest": "^25.1.2", "@types/node": "^13.7.1", "@zeit/ncc": "^0.21.1", - "github-actions-problem-matcher-typings": "^1.0.0", + "github-actions-problem-matcher-typings": "^1.1.0", "jest": "^25.1.0", "jest-circus": "^25.1.0", "ts-jest": "^25.2.0", From 47591a1f3772026c2f7c3fa119f94e1c44a01477 Mon Sep 17 00:00:00 2001 From: Brian Surowiec Date: Tue, 18 Feb 2020 13:18:56 -0500 Subject: [PATCH 2/2] Fix problem matcher name retrieval --- src/main.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 184c3ff..3c664a0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,7 +5,7 @@ import { promisify } from "util"; import { getInput, setFailed } from "@actions/core"; import { issueCommand } from "@actions/core/lib/command" -import { ProblemMatcher } from "github-actions-problem-matcher-typings"; +import { ProblemMatcherDocument } from "github-actions-problem-matcher-typings"; const readFileAsync = promisify(readFile); @@ -26,7 +26,8 @@ export async function run(): Promise { case "remove": const fileContents = await readFileAsync(matcherFile, { encoding: "utf8" }); - const problemMatcher: ProblemMatcher = JSON.parse(fileContents); + const problemMatcherDocument: ProblemMatcherDocument = JSON.parse(fileContents); + const problemMatcher = problemMatcherDocument.problemMatcher[0]; issueCommand( "remove-matcher",