Repository navigation
test: check contents API updates stack on an existing branch - #8557
Merged
Merged
Conversation
unknwon
force-pushed
the
api-v1-flamego
branch
from
November 15, 2026 02:17
378e4db to
ceb6c80
Compare
unknwon
force-pushed
the
fix-contents-api-existing-branch
branch
from
November 15, 2026 02:17
4d01b1d to
7f4df53
Compare
4 tasks done
unknwon
force-pushed
the
api-v1-flamego
branch
from
November 15, 2026 02:49
378e4db to
4b09972
Compare
unknwon
force-pushed
the
fix-contents-api-existing-branch
branch
from
November 15, 2026 02:58
95faa6e to
c691980
Compare
unknwon
force-pushed
the
api-v1-flamego
branch
from
November 15, 2026 03:31
4b09972 to
0e62fdb
Compare
unknwon
force-pushed
the
fix-contents-api-existing-branch
branch
from
November 15, 2026 03:40
c691980 to
51f6db9
Compare
unknwon
force-pushed
the
api-v1-flamego
branch
from
November 15, 2026 04:06
0e62fdb to
630e126
Compare
unknwon
force-pushed
the
fix-contents-api-existing-branch
branch
from
November 15, 2026 04:06
51f6db9 to
5a73067
Compare
unknwon
force-pushed
the
api-v1-flamego
branch
4 times, most recently
from
November 15, 2026 05:34
99ddadc to
2d00e7b
Compare
unknwon
force-pushed
the
fix-contents-api-existing-branch
branch
from
November 15, 2026 13:45
5a73067 to
cc33445
Compare
unknwon
force-pushed
the
api-v1-flamego
branch
2 times, most recently
from
November 15, 2026 14:30
9de21d4 to
1ca8dee
Compare
unknwon
force-pushed
the
fix-contents-api-existing-branch
branch
from
November 15, 2026 14:36
cc33445 to
9db8989
Compare
unknwon
force-pushed
the
api-v1-flamego
branch
from
November 15, 2026 18:57
1ca8dee to
cfa838c
Compare
unknwon
force-pushed
the
fix-contents-api-existing-branch
branch
from
November 15, 2026 19:00
9db8989 to
fd5c293
Compare
unknwon
force-pushed
the
api-v1-flamego
branch
from
November 15, 2026 22:18
cfa838c to
5bf15dd
Compare
unknwon
force-pushed
the
fix-contents-api-existing-branch
branch
from
November 15, 2026 22:21
fd5c293 to
2f99add
Compare
unknwon
force-pushed
the
api-v1-flamego
branch
from
November 15, 2026 22:45
5bf15dd to
c8f8d3a
Compare
unknwon
force-pushed
the
fix-contents-api-existing-branch
branch
2 times, most recently
from
November 16, 2026 00:46
ac50630 to
bb14e24
Compare
unknwon
force-pushed
the
api-v1-flamego
branch
2 times, most recently
from
November 16, 2026 01:45
77bf58f to
da5e771
Compare
unknwon
force-pushed
the
fix-contents-api-existing-branch
branch
3 times, most recently
from
November 16, 2026 03:07
d4164cb to
a7254cd
Compare
unknwon
force-pushed
the
api-v1-flamego
branch
from
November 16, 2026 03:07
334fafe to
9cadbd0
Compare
unknwon
force-pushed
the
api-v1-flamego
branch
from
November 16, 2026 22:40
9cadbd0 to
cc5899d
Compare
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
The contents API always committed on top of the default branch and treated the requested branch as a new one, so a second update on the same branch failed because the branch already existed. It now commits on top of the requested branch when it exists.
ifer47 found and fixed the same bug in #8365. Co-authored-by: ifer47 <[email protected]>
The second update on a branch is on top of the first, the branch has the latest content, and the default branch is unchanged.
unknwon
force-pushed
the
fix-contents-api-existing-branch
branch
from
November 17, 2026 06:40
a7254cd to
1488f8d
Compare
This branch was successfully deployed
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.
Describe the pull request
The contents API always committed on top of the default branch and passed the requested
branchas a new branch, so the firstPUTto a non-default branch created it and every later one failed withbranch already exists(500).The fix itself, committing on top of the requested branch when it exists and still creating it from the default branch otherwise, landed in #8651 together with an integration test that only checked the status codes. This pull request adds the CHANGELOG entry and makes that test also check that the second update is on top of the first, that the branch has the latest content, and that the default branch is unchanged. It also credits @ifer47, who found and fixed the same bug in #8365.
Link to the issue: Fixes #8189
Checklist
Test plan
go test -run TestAPIV1Contents ./integration-tests/...against PostgreSQL passes.existing branchsubtest fails withbranch already exists(500) on the secondPUT.