Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Infinoid
86ee5b4b1b
PATCH branch-protection updates check list even when checks are disabled ( #26351 )
...
Fixes : #26333 .
Previously, this endpoint only updates the `StatusCheckContexts` field
when `EnableStatusCheck==true`, which makes it impossible to clear the
array otherwise.
This patch uses slice `nil`-ness to decide whether to update the list of
checks. The field is ignored when either the client explicitly passes in
a null, or just omits the field from the json ([which causes
`json.Unmarshal` to leave the struct field
unchanged](https://go.dev/play/p/Z2XHOILuB1Q )). I think this is a better
measure of intent than whether the `EnableStatusCheck` flag was set,
because it matches the semantics of other field types.
Also adds a test case. I noticed that [`testAPIEditBranchProtection`
only checks the branch
name](c1c83dbaec/tests/integration/api_branch_test.go (L68)
)
and no other fields, so I added some extra `GET` calls and specific
checks to make sure the fields are changing properly.
I added those checks the existing integration test; is that the right
place for it?
2 years ago
..
avatar.go
Add API for changing Avatars ( #25369 )
2 years ago
blob.go
…
branch.go
PATCH branch-protection updates check list even when checks are disabled ( #26351 )
2 years ago
collaborators.go
…
commits.go
…
file.go
Add context parameter to some database functions ( #26055 )
2 years ago
fork.go
Fix `Permission` in API returned repository struct ( #25388 )
2 years ago
git_hook.go
…
git_ref.go
…
hook.go
Fix `Permission` in API returned repository struct ( #25388 )
2 years ago
hook_test.go
…
issue.go
Return empty when searching issues with no repos ( #26545 )
2 years ago
issue_attachment.go
Add context parameter to some database functions ( #26055 )
2 years ago
issue_comment.go
Add context parameter to some database functions ( #26055 )
2 years ago
issue_comment_attachment.go
For API attachments, use API URL ( #25639 )
2 years ago
issue_dependency.go
Add context parameter to some database functions ( #26055 )
2 years ago
issue_label.go
Refactor and enhance issue indexer to support both searching, filtering and paging ( #26012 )
2 years ago
issue_pin.go
Add context parameter to some database functions ( #26055 )
2 years ago
issue_reaction.go
Add context parameter to some database functions ( #26055 )
2 years ago
issue_stopwatch.go
Add context parameter to some database functions ( #26055 )
2 years ago
issue_subscription.go
Add context parameter to some database functions ( #26055 )
2 years ago
issue_tracked_time.go
Add context parameter to some database functions ( #26055 )
2 years ago
key.go
Fix `Permission` in API returned repository struct ( #25388 )
2 years ago
label.go
Allow to archive labels ( #26478 )
2 years ago
language.go
…
main_test.go
…
migrate.go
Fix `Permission` in API returned repository struct ( #25388 )
2 years ago
milestone.go
…
mirror.go
Use correct response code in push mirror creation response in v1_json.tmpl ( #25476 )
2 years ago
notes.go
…
patch.go
Sync branches into databases ( #22743 )
2 years ago
pull.go
…
pull_review.go
…
release.go
For API attachments, use API URL ( #25639 )
2 years ago
release_attachment.go
For API attachments, use API URL ( #25639 )
2 years ago
release_tags.go
For API attachments, use API URL ( #25639 )
2 years ago
repo.go
Support copy protected branch from template repository ( #25889 )
2 years ago
repo_test.go
…
star.go
…
status.go
Fix `Permission` in API returned repository struct ( #25388 )
2 years ago
subscriber.go
…
tag.go
…
teams.go
…
topic.go
Replace `interface{}` with `any` ( #25686 )
2 years ago
transfer.go
Fix `Permission` in API returned repository struct ( #25388 )
2 years ago
tree.go
…
wiki.go
Introduce ctx.PathParamRaw to avoid incorrect unescaping ( #26392 )
2 years ago