You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services/repository
Fábio Barkoski e45a4c9829
Move repository visibility to danger zone in the settings area (#31126)
Moved repository visibility to the danger zone in the settings area. To
change the visibility, it is necessary to go to the danger zone, click
on the private/public button, and accept the change in the modal.

Resolves:  #23826

---
## Screenshots

<details>
<summary>Before</summary>
Private repo:

![Private
repo](https://github.com/go-gitea/gitea/assets/65479069/4313492a-4854-48bc-9f47-974e3539d791)

Public repo:

![Public
repo](https://github.com/go-gitea/gitea/assets/65479069/1c45f6e4-ee93-4799-9331-e9d4a7e0f16a)

</details>
<details>
<summary>After</summary>
Make private:

![Screenshot from 2024-05-28
21-35-38](https://github.com/go-gitea/gitea/assets/65479069/4887e28a-0514-4990-aa69-bf3ddc7e6c7d)

Make private modal

![Screenshot from 2024-06-13
23-55-55](https://github.com/go-gitea/gitea/assets/65479069/9f5a7604-069b-41a2-973b-ee2d58e85953)

![Screenshot from 2024-06-13
23-53-09](https://github.com/go-gitea/gitea/assets/65479069/06c22726-eab2-4bce-8df7-62849dcce974)

Make public:

![Screenshot from 2024-05-28
21-34-27](https://github.com/go-gitea/gitea/assets/65479069/6d388f99-0356-48a0-9d85-320cdba55179)

Make public modal

![Screenshot from 2024-06-13
23-53-37](https://github.com/go-gitea/gitea/assets/65479069/8944972e-f2d4-4aea-ba96-b892febb5ced)

</details>

---------

Co-authored-by: Kemal Zebari <60799661+kemzeb@users.noreply.github.com>
7 months ago
..
archiver Move context from modules to services (#29440) 1 year ago
commitstatus Fix automerge will not work because of some events haven't been triggered (#30780) 9 months ago
files Refactor names (#31405) 8 months ago
adopt.go Fix incorrect default branch when adopt a repository (#30912) 10 months ago
adopt_test.go Add a simple test for AdoptRepository (#31391) 9 months ago
avatar.go Improve avatar uploading / resizing / compressing, remove Fomantic card module (#24653) 2 years ago
avatar_test.go Use context parameter in services/repository (#23186) 2 years ago
branch.go Fix a branch divergence cache bug (#31659) 7 months ago
cache.go Always enable caches (#28527) 1 year ago
check.go Update tool dependencies (#29030) 1 year ago
collaboration.go Add user blocking (#29028) 1 year ago
collaboration_test.go Add user blocking (#29028) 1 year ago
commit.go Move context from modules to services (#29440) 1 year ago
contributors_graph.go Enable more `revive` linter rules (#30608) 10 months ago
contributors_graph_test.go Refactor cache and disable go-chi cache (#30417) 11 months ago
create.go Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 12 months ago
create_test.go bump to use go 1.22 (#29119) 1 year ago
delete.go Clarify permission "HasAccess" behavior (#30585) 10 months ago
delete_test.go Delete repos of org when purge delete user (#27273) 1 year ago
fork.go Add user blocking (#29028) 1 year ago
fork_test.go Add option to prohibit fork if user reached maximum limit of repositories (#21848) 2 years ago
generate.go Add `YEAR`, `MONTH`, `MONTH_ENGLISH`, `DAY` variables for template repos (#31584) 8 months ago
generate_test.go Move generate from module to service (#29465) 1 year ago
hooks.go Simplify how git repositories are opened (#28937) 1 year ago
init.go Move generate from module to service (#29465) 1 year ago
lfs.go Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 1 year ago
lfs_test.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 1 year ago
main_test.go make writing main test easier (#27270) 1 year ago
migrate.go Distinguish LFS object errors to ignore missing objects during migration (#31702) 7 months ago
push.go Fix a branch divergence cache bug (#31659) 7 months ago
repository.go Move repository visibility to danger zone in the settings area (#31126) 7 months ago
repository_test.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
review.go Use context parameter in services/repository (#23186) 2 years ago
review_test.go Use context parameter in services/repository (#23186) 2 years ago
setting.go Fix an actions schedule bug (#28942) 1 year ago
template.go Move generate from module to service (#29465) 1 year ago
transfer.go Add `lint-go-gopls` (#30729) 9 months ago
transfer_test.go Clarify permission "HasAccess" behavior (#30585) 10 months ago