Skip to content

Commit

Permalink
Merge pull request #15 from Frederick888/revert-state-reason-workarou…
Browse files Browse the repository at this point in the history
…nd into master

* revert-state-reason-workaround:
  revert: "feat: Temporary workaround for cli/cli#9160"
  • Loading branch information
Frederick888 committed Aug 15, 2024
2 parents 1bf5afe + 7d5cf02 commit 64975c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gh-ph
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 64975c3

Please sign in to comment.