gh: Cherry pick changes https://github.com/jingweno/gh/compare/16fbeef...f324a83

See https://github.com/github/hub/pull/544