{"version":"2.1.332","anchor":"ship-learns-github-enterprise-hosts","canonical_anchor":"ship-learns-github-enterprise-hosts","heading":"\/ship works with GitHub Enterprise hosts","tier":"notice","area":"Pull Requests","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332\/e\/ship-learns-github-enterprise-hosts","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332","markdown":"### \/ship works with GitHub Enterprise hosts\n\n\/ship now accepts repositories on GitHub Enterprise hosts and checks that you are signed in to that host before pushing\n\n**Unclear.** It is not clear whether GitHub Enterprise support is always on or depends on a setting.\n\n**What**\n\n`\/ship` is the command that pushes your work and opens a pull request. It no longer works only with repositories on github.com. It now also accepts repositories whose remote (the server address git pushes to) is on another GitHub host, such as your company's GitHub Enterprise server.\n\nFor these hosts, `\/ship`:\n\n- Runs `gh auth status --hostname` to check that the GitHub command-line tool is signed in to that host.\n\n- Sets `GH_HOST`, `GH_CONFIG_DIR` and the token environment variables for that host only.\n\n- Refuses to push if you are not signed in on that host.\n\nThe old message saying `\/ship` only works with pull requests on github.com now appears only when the host really is github.com. When `\/ship` cannot tell what host a pull request is on, it suggests what to run if the host is your company's GitHub Enterprise server.\n\n**Why**\n\nBefore this change, people whose code lives on GitHub Enterprise could not use `\/ship` at all.\n\n- Area: Pull Requests\n- Names: `\/ship`\n- Tier: You'll notice\n- Useful: 4\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: no"}