From 4ae289b0a6c7e8c8bcadab7562200fdd64175081 Mon Sep 17 00:00:00 2001 From: Tsuf Cohen <39455181+tsuf239@users.noreply.github.com> Date: Sun, 24 Mar 2024 10:55:35 +0200 Subject: [PATCH] chore: add `\n` to matrix generation (#6041) preventing those "empty" PRs: https://github.com/winglang/wing/pull/6039 ## Checklist - [ ] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted) - [ ] Description explains motivation and solution - [ ] Tests added (always) - [ ] Docs updated (only required for features) - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing *By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*. --- tools/compatibility-matrix-automation/src/matrix-automation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/compatibility-matrix-automation/src/matrix-automation.ts b/tools/compatibility-matrix-automation/src/matrix-automation.ts index 3fc808f6b94..71d3ac72554 100644 --- a/tools/compatibility-matrix-automation/src/matrix-automation.ts +++ b/tools/compatibility-matrix-automation/src/matrix-automation.ts @@ -42,7 +42,7 @@ export function updateMatrix(outFolderPath: string, matrixPath = MATRIX_PATH) { } } - writeFileSync(MATRIX_PATH, JSON.stringify(matrix, null, 2)); + writeFileSync(MATRIX_PATH, `${JSON.stringify(matrix, null, 2)}\n`); } export function updateMatrixFromFile(