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?
1 year ago
..
avatar.go
Add API for changing Avatars ( #25369 )
1 year ago
blob.go
Implement FSFE REUSE for golang files ( #21840 )
2 years ago
branch.go
PATCH branch-protection updates check list even when checks are disabled ( #26351 )
1 year ago
collaborators.go
Add context cache as a request level cache ( #22294 )
2 years ago
commits.go
Filter get single commit ( #24613 )
2 years ago
file.go
Add context parameter to some database functions ( #26055 )
1 year ago
fork.go
Fix `Permission` in API returned repository struct ( #25388 )
1 year ago
git_hook.go
Move `convert` package to services ( #22264 )
2 years ago
git_ref.go
Implement FSFE REUSE for golang files ( #21840 )
2 years ago
hook.go
Fix `Permission` in API returned repository struct ( #25388 )
1 year ago
hook_test.go
Refactor web package and context package ( #25298 )
1 year ago
issue.go
Return empty when searching issues with no repos ( #26545 )
1 year ago
issue_attachment.go
Add context parameter to some database functions ( #26055 )
1 year ago
issue_comment.go
Add context parameter to some database functions ( #26055 )
1 year ago
issue_comment_attachment.go
For API attachments, use API URL ( #25639 )
1 year ago
issue_dependency.go
Add context parameter to some database functions ( #26055 )
1 year ago
issue_label.go
Refactor and enhance issue indexer to support both searching, filtering and paging ( #26012 )
1 year ago
issue_pin.go
Add context parameter to some database functions ( #26055 )
1 year ago
issue_reaction.go
Add context parameter to some database functions ( #26055 )
1 year ago
issue_stopwatch.go
Add context parameter to some database functions ( #26055 )
1 year ago
issue_subscription.go
Add context parameter to some database functions ( #26055 )
1 year ago
issue_tracked_time.go
Add context parameter to some database functions ( #26055 )
1 year ago
key.go
Fix `Permission` in API returned repository struct ( #25388 )
1 year ago
label.go
Allow to archive labels ( #26478 )
1 year ago
language.go
Implement FSFE REUSE for golang files ( #21840 )
2 years ago
main_test.go
Merge setting.InitXXX into one function with options ( #24389 )
2 years ago
migrate.go
Fix `Permission` in API returned repository struct ( #25388 )
1 year ago
milestone.go
Move `convert` package to services ( #22264 )
2 years ago
mirror.go
Use correct response code in push mirror creation response in v1_json.tmpl ( #25476 )
1 year ago
notes.go
Filters for GetAllCommits ( #24568 )
2 years ago
patch.go
Sync branches into databases ( #22743 )
1 year ago
pull.go
Filters for GetAllCommits ( #24568 )
2 years ago
pull_review.go
Make more functions use ctx instead of db.DefaultContext ( #24068 )
2 years ago
release.go
For API attachments, use API URL ( #25639 )
1 year ago
release_attachment.go
For API attachments, use API URL ( #25639 )
1 year ago
release_tags.go
For API attachments, use API URL ( #25639 )
1 year ago
repo.go
Support copy protected branch from template repository ( #25889 )
1 year ago
repo_test.go
Refactor web package and context package ( #25298 )
1 year ago
star.go
Add context cache as a request level cache ( #22294 )
2 years ago
status.go
Fix `Permission` in API returned repository struct ( #25388 )
1 year ago
subscriber.go
Add context cache as a request level cache ( #22294 )
2 years ago
tag.go
Add context cache as a request level cache ( #22294 )
2 years ago
teams.go
Add context cache as a request level cache ( #22294 )
2 years ago
topic.go
Replace `interface{}` with `any` ( #25686 )
1 year ago
transfer.go
Fix `Permission` in API returned repository struct ( #25388 )
1 year ago
tree.go
Implement FSFE REUSE for golang files ( #21840 )
2 years ago
wiki.go
Introduce ctx.PathParamRaw to avoid incorrect unescaping ( #26392 )
1 year ago