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/models/fixtures
Kemal Zebari 2483a93fbc
Only allow admins to rename default/protected branches (#33276)
Currently, anyone with write permissions to a repo are able to rename
default or protected branches.

This change follows
[GitHub's](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch)
design by only allowing repo/site admins to change these branches.
However, it also follows are current design for protected branches and
only allows admins to modify branch names == branch protection rule
names. Glob-based rules cannot be renamed by anyone (as was already the
case, but we now catch `ErrBranchIsProtected` which we previously did
not catch, throwing a 500).
2 weeks ago
..
access.yml Only allow admins to rename default/protected branches (#33276) 2 weeks ago
access_token.yml Fix more yaml lint errors (#27284) 1 year ago
action.yml Support "." char as user name for User/Orgs in RSS/ATOM/GPG/KEYS path ... (#23874) 2 years ago
action_artifact.yml Add artifacts test fixture (#30300) 3 months ago
action_run.yml Fix bug on action list deleted branch (#32848) 2 months ago
action_run_job.yml Refactor fixture loading for testing (#33024) 1 month ago
action_runner_token.yml Add unit tests for action runner token (#27670) 1 year ago
action_task.yml Fix missing outputs for jobs with matrix (#32823) 2 months ago
action_task_output.yml Fix missing outputs for jobs with matrix (#32823) 2 months ago
attachment.yml Allow get release download files and lfs files with oauth2 token format (#26430) 1 year ago
branch.yml Fix bug on action list deleted branch (#32848) 2 months ago
collaboration.yml Add user blocking (#29028) 11 months ago
comment.yml Fix the logic of finding the latest pull review commit ID (#32139) 4 months ago
commit_status.yml Status-API (#1332) 8 years ago
commit_status_index.yml Fix more yaml lint errors (#27284) 1 year ago
deploy_key.yml Writable deploy keys (closes #671) (#3225) 7 years ago
email_address.yml Allow non-admin users to delete review requests (#29057) 11 months ago
external_login_user.yml add test coverage for original author conversion during migrations (#18506) 3 years ago
follow.yml Fix user visible check (#21210) 2 years ago
gpg_key.yml Fix verifyCommits error when push a new branch (#26664) 1 year ago
gpg_key_import.yml add .gpg url (match github behaviour) (#6610) 6 years ago
hook_task.yml Store webhook event in database (#29145) 11 months ago
issue.yml Allow non-admin users to delete review requests (#29057) 11 months ago
issue_assignees.yml Add user blocking (#29028) 11 months ago
issue_index.yml Fix wrong display of recently pushed notification (#25812) 8 months ago
issue_label.yml Add Organization Wide Labels (#10814) 5 years ago
issue_user.yml [API] ListIssues add more filters (#16174) 4 years ago
issue_watch.yml Refactor Issues Subscription (#8738) 5 years ago
label.yml Support org labels when adding labels by label names (#32988) 1 month ago
lfs_meta_object.yml Fix test fixtures for user2/lfs.git (#32477) 3 months ago
login_source.yml Add LDAP integration tests (#3897) 7 years ago
milestone.yml Add some api integration tests (#18872) 2 years ago
mirror.yml Fix bug of branches API with tests (#25578) 2 years ago
notice.yml Unit tests for models/admin 8 years ago
notification.yml [API] Add notification endpoint (#9488) 5 years ago
oauth2_application.yml Record OAuth client type at registration (#21316) 2 years ago
oauth2_authorization_code.yml Record OAuth client type at registration (#21316) 2 years ago
oauth2_grant.yml Record OAuth client type at registration (#21316) 2 years ago
org_user.yml Limit org member view of restricted users (#32211) 3 months ago
project.yml Add default board to new projects, remove uncategorized pseudo-board (#29874) 10 months ago
project_board.yml Add default board to new projects, remove uncategorized pseudo-board (#29874) 10 months ago
project_issue.yml Kanban board (#8346) 5 years ago
protected_branch.yml Don't recreate database in integration tests (#1697) 8 years ago
protected_tag.yml Refactor fixture loading for testing (#33024) 1 month ago
public_key.yml Fix more yaml lint errors (#27284) 1 year ago
pull_request.yml Update misspell to 0.5.1 and add `misspellings.csv` (#30573) 9 months ago
reaction.yml Fix more yaml lint errors (#27284) 1 year ago
release.yml Allow get release download files and lfs files with oauth2 token format (#26430) 1 year ago
renamed_branch.yml Add a simple way to rename branch like gh (#15870) 3 years ago
repo_archiver.yml Rework repository archive (#14723) 4 years ago
repo_indexer_status.yml Code/repo search (#2582) 7 years ago
repo_license.yml Support repo license (#24872) 4 months ago
repo_redirect.yml Unit tests for repo redirects (#961) 8 years ago
repo_topic.yml Add API endpoint for accessing repo topics (#7963) 5 years ago
repo_transfer.yml Add user blocking (#29028) 11 months ago
repo_unit.yml Allow code search by filename (#32210) 4 months ago
repository.yml Reduce integration test overhead (#32475) 3 months ago
review.yml Use batch database operations instead of one by one to optimze api pulls (#32680) 2 months ago
star.yml Add user blocking (#29028) 11 months ago
stopwatch.yml [API] extend StopWatch (#9196) 5 years ago
system_setting.yml disable gravatar in test (#32529) 2 months ago
team.yml Fix wrong display of recently pushed notification (#25812) 8 months ago
team_repo.yml Allow non-admin users to delete review requests (#29057) 11 months ago
team_unit.yml Fix wrong display of recently pushed notification (#25812) 8 months ago
team_user.yml Fix wrong display of recently pushed notification (#25812) 8 months ago
topic.yml Add some api integration tests (#18872) 2 years ago
tracked_time.yml [API] Extend times API (#9200) 5 years ago
two_factor.yml org/members: display 2FA members states + optimize sql requests (#7621) 6 years ago
user.yml Fix GetInactiveUsers (#32540) 2 months ago
user_blocking.yml Add user blocking (#29028) 11 months ago
user_open_id.yml Show user OpenID URIs in their profile (#1314) 8 years ago
user_redirect.yml Redirect on changed user and org name (#11649) 4 years ago
watch.yml Add user blocking (#29028) 11 months ago
webauthn_credential.yml Add some api integration tests (#18872) 2 years ago
webhook.yml Let API create and edit system webhooks, attempt 2 (#33180) 3 weeks ago