From 138be0fd73d8aea87308dbe20cd5e07bc1ada473 Mon Sep 17 00:00:00 2001 From: pakrym-oai Date: Thu, 2 Oct 2025 14:43:40 -0700 Subject: [PATCH] Use GH cli to fetch current issue (#4630) Attempting to format the env var caused escaping issues --- .github/workflows/issue-deduplicator.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue-deduplicator.yml b/.github/workflows/issue-deduplicator.yml index 05453450..e729415c 100644 --- a/.github/workflows/issue-deduplicator.yml +++ b/.github/workflows/issue-deduplicator.yml @@ -35,8 +35,10 @@ jobs: | jq '.' \ > "$EXISTING_ISSUES_FILE" - printf '%s' '${{ toJson(github.event.issue) }}' \ - | jq '{number, title, body}' \ + gh issue view "${{ github.event.issue.number }}" \ + --repo "${{ github.repository }}" \ + --json number,title,body \ + | jq '.' \ > "$CURRENT_ISSUE_FILE" - id: codex