Repository navigation
Fix setup after the merge, GitHub failure messages, and onboarding docs - #70
Merged
Merged
Conversation
When init or setup names the current GitHub login as the only owner, it says that owners approve requests and that the owner should not be the author of most changes (I7).
…unreachable After the setup pull request is merged, setup read the leftover archfit/setup branch before the merge and sent the user back to it (B3). It now reads the merge first and reports advisory checks on, with the setup page (setup.AppURL) as the next step, or required checks on when the merged policy has gate: required, with the ruleset as the next step. gh reports a network failure as an invalid token. Setup now reads gh's Error: line and says it could not reach GitHub instead of saying that gh is not signed in (B6).
archfit request said there was no open pull request when the branch had no upstream (pushed without -u), and "GitHub lookup failed" when the network failed (B6). It now names the missing upstream or the network cause, never the URL or the token, and reserves "no open pull request" for GitHub's own answer. When nothing reached GitHub for a request from check output, it prints the /archfit request reply to post instead.
…p texts getting-started and the README now name archfit setup for checks on GitHub and keep init as the local-only path (F2). Install lines use the latest release instead of a fixed v0.9.0, and ci.md explains the candidate pin (B9, I9). The setup and request references and the onboarding texts show the states after the merge, the unreachable GitHub messages, the pull request reply line and the owner note.
…emote Review follow-ups. Setup now prints the cause of a gh failure without the request URL or a response body, shows only the status of an HTTP answer, matches a 401 on the status code rather than anywhere in the line, and reports a gh that does not answer as unreachable. An unreachable run also says it cannot show the pull request. The no-upstream hint names the push remote. Tests pin that an unknown POST outcome never offers the reply line. Docs match the real init output and the ruleset wording.
gh 2.105 also reports an HTTP answer as "HTTP 401: <message> (<url>)". Setup now reads that form, so a rejected token is a refused login and any other status prints only its code, never the message or the URL.
Contributor
✅ Archfit: pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes beta usability findings B3, B6, I7, F2, B9 and I9 (setup after the merge, GitHub failures, owner note, onboarding docs).
What changes
archfit/setupbranch. After the merge it printsstate: advisory checks onandnext: open the setup page: <setup.AppURL>, then a line saying that an owner approves the first policy there and then makes the check required. When the merged policy hasgate: required, it printsstate: required checks onandnext: check that a branch ruleset requires archfit/gate: …/settings/rules. The link comes fromsetup.AppURL, and a test pins that.setup pull request not opened; could not reach GitHub, with the cause. The cause never includes the request URL or a response body.archfit requestno longer says "no open pull request" when the branch has no upstream. It names the missing upstream and givesnext: git push -u <push remote> HEAD. A network failure printscould not reach GitHub: <cause>; nothing sent. When nothing reached GitHub for a request fromcheckoutput, the last line isor reply on the pull request: /archfit request <why>. It is never printed for an unknown POST outcome or for acananswer.initorsetupnames the current login as the only owner, it says once that owners approve requests and that the owner should not write most of the changes.archfit setupand keepinitas the local-only path. Install lines use the latest release.ci.mdexplains the# candidatepin. The commands reference, the try-it page and the onboarding texts show the new output.Checks
GOWORK=off make all: pass (lint, race tests, build,archfit: pass).make names: pass.TestSetupDetectsMergedWithoutGitHub(B3 and required), thegh cannot reach GitHubcase inTestSetupResumesPublishedBranchWithoutMutations, and the no-upstream, network and reply cases inTestRequestSendsFromCLI. Story vocabulary checks run on all new output.comprehensive(claude + codex, 4/4 sources) found 1 major and 7 minor issues, all fixed. revmuxfinal(2/2) found 1 major (gh'sHTTP 401: …error form), fixed.detect-changes. The index covers only the main checkout, not this worktree. Impact analysis ran before the edits. No fixtures, policies or extractors changed, solanguage-contractsandtool-lockswere not run.Follow-up (existing behaviour, not changed here)
archfit requestbuilds the pull request head from the push owner and the upstream branch name. When a branch tracksorigin/mainbut pushes tofork/feature, it looks upfork:main, and it could post on an unrelated pull request.