{"version":"2.1.331","anchor":"steward-gains-pr-state-detection-and-a-forgegit-short","canonical_anchor":"steward-gains-pr-state-detection-and-a-forgegit-short","heading":"\/steward says when there is no GitHub remote or no such pull request","tier":"notice","area":"Steward","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/steward-gains-pr-state-detection-and-a-forgegit-short","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### \/steward says when there is no GitHub remote or no such pull request\n\n\/steward now tells apart a missing GitHub remote and a missing pull request, and skips pull request checks for plain git repositories\n\n**Unclear.** Whether \/steward is a command readers can run in this release is not settled.\n\n**What**\n\nWhen `\/steward` cannot look up a pull request, it used to report only a general failure. It now also notes the likely cause, based on the error text from `gh`, GitHub's command-line tool:\n\n- No GitHub remote: the checkout has no link to a repository on GitHub.\n\n- No such pull request: the pull request it looked for does not exist.\n\nThe `gh` commands it runs are now given their own set of environment variables. When the repository is hosted with plain git rather than a service such as GitHub, listing a pull request's checks or comments returns nothing instead of trying.\n\n**Why**\n\nThis lets `\/steward` work in checkouts with no GitHub remote and on hosts other than GitHub, and give a more useful message when a pull request cannot be found.\n\n- Area: Steward\n- Names: `\/steward`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}