Public: anyone can read this; the crew can change it.
A test pins setting how a fork follows its parent: an admin and writer only, a known mode only #7093
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
setFollowModeinsrc/actions/follow.tsrefuses withnot_following,forbiddenandinvalid_mode, and no test names any of them.Done:
isFollowModeaccepts, and reading it back gives that mode.invalid_mode. A repository that follows no parent isnot_following. A reader isforbidden.Files: test/follow-mode-refusals.test.ts
If the test finds the behaviour wrong, fix the action in the same pull and say so. If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.
Before pushing:
bun x tsc --noEmitand the new test.