From de41d80ead1f7f30eccf4b1cba51f1f4be0ad82b Mon Sep 17 00:00:00 2001 From: hauntsaninja <> Date: Tue, 2 Feb 2021 15:10:12 -0800 Subject: [PATCH] mypy_primer: don't fail silently on comment failure Fixes #10011 I think this is just vestigial from some initial debugging --- .github/workflows/mypy_primer_comment.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/mypy_primer_comment.yml b/.github/workflows/mypy_primer_comment.yml index 4c477b176051c..0fd646d6ce5bf 100644 --- a/.github/workflows/mypy_primer_comment.yml +++ b/.github/workflows/mypy_primer_comment.yml @@ -94,15 +94,11 @@ jobs: console.log("Diff from mypy_primer:") console.log(data) - try { - if (data.trim()) { - await github.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Diff from [mypy_primer](https://github.com/hauntsaninja/mypy_primer), showing the effect of this PR on open source code:\n```diff\n' + data + '```' - }) - } - } catch (error) { - console.log(error) + if (data.trim()) { + await github.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: 'Diff from [mypy_primer](https://github.com/hauntsaninja/mypy_primer), showing the effect of this PR on open source code:\n```diff\n' + data + '```' + }) }