Public: anyone can read this; the crew can change it.
A test pins what contributing refuses, and that a refusal leaves no fork, branch or commit behind #6977
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
contributeinsrc/actions/contribute.tsrefuses up front so nothing is half-made. No test proves it.Done, each through
POST /api/v1/repos/:owner/:name/contributewith the fake origin (test/fake-origin.ts):unverified. An origin that is not the caller's isnot_found.refs/heads/xor carrying..isinvalid_branch. An unknown base isunknown_base.pull_failed) rather than claiming nothing happened.Files: test/contribute-refusals.test.ts
If the test finds the behaviour wrong, fix the module it names 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.