From f1a5d816965d3c9886d3b37f2e181aed8f838613 Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Tue, 8 Feb 2022 10:33:38 +0100 Subject: [PATCH] include dco-helper tag in comment Signed-off-by: Johan Haals --- .github/workflows/verify_dco.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/verify_dco.yaml b/.github/workflows/verify_dco.yaml index 28c22b0b66..341ff55fbd 100644 --- a/.github/workflows/verify_dco.yaml +++ b/.github/workflows/verify_dco.yaml @@ -43,14 +43,17 @@ jobs: repo, issue_number: pull.number, }); - - if (comments.find((c) => c.user.login === "github-actions[bot]")) { + if (comments.find((c) => + c.user.login === "github-actions[bot]" && + c.body.includes("") + ) + ) { console.log(`already commented on PR #${pull.number}, skipping`); continue; } console.log(`creating comment on PR #${pull.number}`); - const body = `Thanks for the contribution!\nAll commits need to be DCO signed before merging. Please refer to the the [DCO section in CONTRIBUTING.md](https://github.com/backstage/backstage/blob/master/CONTRIBUTING.md#developer-certificate-of-origin) or the [DCO](${checks.data.check_runs[0].html_url}) status for more info.`; + const body = `Thanks for the contribution!\nAll commits need to be DCO signed before merging. Please refer to the the [DCO section in CONTRIBUTING.md](https://github.com/backstage/backstage/blob/master/CONTRIBUTING.md#developer-certificate-of-origin) or the [DCO](${checks.data.check_runs[0].html_url}) status for more info.`; await github.rest.issues.createComment({ repo, owner,