From 63b4440415fb38c6128e2bcfb036d3a31f07ccf6 Mon Sep 17 00:00:00 2001 From: Kylie Stradley <4666485+KyFaSt@users.noreply.github.com> Date: Mon, 7 Oct 2024 14:13:16 -0400 Subject: [PATCH] Merge commit from fork --- .github/workflows/1-resolve-duplicate-issues.yml | 8 ++++++-- .github/workflows/2-find-commit-in-history.yml | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/1-resolve-duplicate-issues.yml b/.github/workflows/1-resolve-duplicate-issues.yml index 2d95ad6..2b77340 100644 --- a/.github/workflows/1-resolve-duplicate-issues.yml +++ b/.github/workflows/1-resolve-duplicate-issues.yml @@ -55,11 +55,15 @@ jobs: - name: Dump GitHub comment context id: github_comment_step - run: echo '${{ toJSON(github.event.comment) }}' + env: + COMMENT_CONTEXT: ${{ toJSON(github.event.comment) }} + run: echo "$COMMENT_CONTEXT" - name: Dump GitHub issue context id: github_issue_step - run: echo '${{ toJSON(github.event.issue) }}' + env: + ISSUE_CONTEXT: ${{ toJSON(github.event.issue) }} + run: echo "$ISSUE_CONTEXT" - name: Check if commented issue is closed and marked as duplicate if: ${{ contains(github.event.comment.body, 'Duplicate of') && (github.event.issue.state == 'closed')}} diff --git a/.github/workflows/2-find-commit-in-history.yml b/.github/workflows/2-find-commit-in-history.yml index b603f20..16cd519 100644 --- a/.github/workflows/2-find-commit-in-history.yml +++ b/.github/workflows/2-find-commit-in-history.yml @@ -58,11 +58,15 @@ jobs: - name: Dump GitHub comment context id: github_comment_step - run: echo '${{ toJSON(github.event.comment) }}' + env: + COMMENT_CONTEXT: ${{ toJSON(github.event.comment) }} + run: echo "$COMMENT_CONTEXT" - name: Dump GitHub issue context id: github_issue_step - run: echo '${{ toJSON(github.event.issue) }}' + env: + ISSUE_CONTEXT: ${{ toJSON(github.event.issue) }} + run: echo "$ISSUE_CONTEXT" - name: Check if the issue comment is referencing the required commit ID if: contains(github.event.comment.body, needs.get_current_step.outputs.commit_id)