diff options
author | Aravinth Manivannan <realaravinth@batsense.net> | 2021-12-24 14:43:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-24 22:43:00 +0800 |
commit | c7151c2fb6c91d6d3263af3e8baac73fbeaecbbc (patch) | |
tree | c5eeef2e3d65c0e7db046cc28d013b9de39955b3 /modules/structs/fork.go | |
parent | 532383d7ddca2eeed37d2af20cd91f2824fc9cc7 (diff) | |
download | gitea-c7151c2fb6c91d6d3263af3e8baac73fbeaecbbc.tar.gz gitea-c7151c2fb6c91d6d3263af3e8baac73fbeaecbbc.zip |
- name: new parameter in CreateForkOption to give the forked repository (#18066)
a custom name, intended to be used when there's a name conflict
- When a fork request results in a name conflict, HTTP 409: Conflict is
returned instead of 500
- API documentation for the above mentioned changes
Signed-off-by: realaravinth <realaravinth@batsense.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'modules/structs/fork.go')
-rw-r--r-- | modules/structs/fork.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/structs/fork.go b/modules/structs/fork.go index dd6e24e8b7..21afd636c7 100644 --- a/modules/structs/fork.go +++ b/modules/structs/fork.go @@ -8,4 +8,6 @@ package structs type CreateForkOption struct { // organization name, if forking into an organization Organization *string `json:"organization"` + // name of the forked repository + Name *string `json:"name"` } |