# github checkout issue
#function githubcoi() {
  if [ "$1" = "" ]
  then
    printf "usage: %s <issue number>\n" "$0"
  fi

  git checkout -b "$1-$(gh issue view "$1" --json title \
    | jq --raw-output '.title' \
    | iconv -t ascii//TRANSLIT \
    | sed -E 's/[^a-zA-Z0-9]+/-/g' \
    | sed -E 's/^-+|-+$//g' \
    | tr '[:upper:]' '[:lower:]')"
#}
