From 7d5cf02a901d07009e5528e32c146b506f85fc96 Mon Sep 17 00:00:00 2001 From: Frederick Zhang Date: Thu, 15 Aug 2024 15:00:40 +1000 Subject: [PATCH] revert: "feat: Temporary workaround for cli/cli#9160" This reverts commit 8eb0663c0e8aadc827c88428f56cba2e85b39ec0. The gh-cli issue has been fixed. --- gh-ph | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gh-ph b/gh-ph index 10fab97..837a713 100755 --- a/gh-ph +++ b/gh-ph @@ -26,7 +26,7 @@ function gh_template() { local format="$1" if [[ -z "$GH_TEMPLATE_CACHE" ]]; then local fields - fields="$(set -eo pipefail; (gh pr view --json 2>&1 || true) | tail -n+2 | tr -d ' ' | grep -v stateReason | paste -d, -s -)" + fields="$(set -eo pipefail; (gh pr view --json 2>&1 || true) | tail -n+2 | tr -d ' ' | paste -d, -s -)" GH_TEMPLATE_CACHE="$(set -eo pipefail; gh pr view "$GH_PH_PULL_REQUEST_ID" --json "$fields" --template "$format")" fi printf '%s' "$GH_TEMPLATE_CACHE"