From 3916e36976a33e15e062f8b3a0d09c2d89683e4a Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Fri, 18 Aug 2023 21:05:03 +0200 Subject: [PATCH] devops: filter merged comments to hide better (#26546) --- .github/workflows/create_test_report.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_test_report.yml b/.github/workflows/create_test_report.yml index cee6645608..ec5789942c 100644 --- a/.github/workflows/create_test_report.yml +++ b/.github/workflows/create_test_report.yml @@ -80,7 +80,7 @@ jobs: issue_number: prNumber, }); for (const comment of comments) { - if (comment.user.login === 'github-actions[bot]' && comment.body.includes('Test results')) { + if (comment.user.login === 'github-actions[bot]' && /\[Test results\]\(https:\/\/.+?\) for "${{ github.event.workflow_run.name }}"/.test(comment.body)) { await github.graphql(` mutation { minimizeComment(input: {subjectId: "${comment.node_id}", classifier: OUTDATED}) {