Skip to content

Commit

Permalink
Merge pull request #13 from Frederick888/workaround-gh-cli-9160 into …
Browse files Browse the repository at this point in the history
…master

* workaround-gh-cli-9160:
  feat: Temporary workaround for cli/cli#9160
  • Loading branch information
Frederick888 committed Jun 13, 2024
2 parents 61ab537 + 8eb0663 commit 198435b
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 ' ' | paste -d, -s -)"
fields="$(set -eo pipefail; (gh pr view --json 2>&1 || true) | tail -n+2 | tr -d ' ' | grep -v stateReason | 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 198435b

Please sign in to comment.