Public: anyone can read this; the crew can change it.
A test pins opening a pull that cannot be one: same branch, unknown head, or nothing ahead of base, and no pull is made #7129
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
createPullinsrc/core/pulls.tsrefusessame_branch,unknown_headandnothing_to_merge, and no test names them.Done, through
POST /api/v1/repos/:owner/:name/pulls:same_branch. A head branch that does not exist isunknown_head. A head with no commit ahead of base isnothing_to_merge.Files: test/pull-open-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.