From 8366f54a41c76c34d3bd29b5918f3efe640a1d5a Mon Sep 17 00:00:00 2001 From: Kitty Chiu <42864823+KittyChiu@users.noreply.github.com> Date: Fri, 12 Jul 2024 21:06:21 +1000 Subject: [PATCH 1/2] fix: add truncate to issue comment --- .github/workflows/issue_ops.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue_ops.yml b/.github/workflows/issue_ops.yml index b345914..f7bbe70 100644 --- a/.github/workflows/issue_ops.yml +++ b/.github/workflows/issue_ops.yml @@ -36,6 +36,7 @@ jobs: outputs: command: ${{ steps.prepare.outputs.command }} log-filename: ${{ steps.logs.outputs.filename }} + output-url: ${{ steps.output.outputs.artifact-url }} steps: - name: Install GitHub Actions Importer run: | @@ -85,6 +86,7 @@ jobs: ${{ steps.prepare.outputs.args }} \ --output-dir output - uses: actions/upload-artifact@v4 + id: output if: always() with: path: output/ @@ -174,6 +176,8 @@ jobs: } if (currentLength > MAX_LENGTH){ + workflows.push(`... Too large post in issue comment.`) + workflows.push(`Download the full dry-run output [here](${{ needs.execute-actions-importer.outputs.output-url }})`) break } @@ -208,10 +212,10 @@ jobs: echo $pullRequest echo "output=$pullRequest" >> $GITHUB_OUTPUT env: - pullRequestPattern: "Pull request: " + pullRequestPattern: 'Pull request: ' - uses: actions/github-script@v7 env: - PULL_REQUEST_URL: "${{ steps.pull-request-url.outputs.output }}" + PULL_REQUEST_URL: '${{ steps.pull-request-url.outputs.output }}' with: script: | const body = `Migration was successful :sparkles: From 07a103a9d656134a63e288cc71da19be7ff2f7e5 Mon Sep 17 00:00:00 2001 From: Kitty Chiu <42864823+KittyChiu@users.noreply.github.com> Date: Fri, 12 Jul 2024 21:16:54 +1000 Subject: [PATCH 2/2] fix: updated display text --- .github/workflows/issue_ops.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue_ops.yml b/.github/workflows/issue_ops.yml index f7bbe70..a474b86 100644 --- a/.github/workflows/issue_ops.yml +++ b/.github/workflows/issue_ops.yml @@ -176,8 +176,8 @@ jobs: } if (currentLength > MAX_LENGTH){ - workflows.push(`... Too large post in issue comment.`) - workflows.push(`Download the full dry-run output [here](${{ needs.execute-actions-importer.outputs.output-url }})`) + workflows.push(`... Dry-run outputs are too large to display in issue comment.`) + workflows.push(`Download the full output [here](${{ needs.execute-actions-importer.outputs.output-url }})`) break }