summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2024-05-14 15:15:36 +0800
committerGitHub <noreply@github.com>2024-05-14 07:15:36 +0000
commit8393ff78fce165f39d62b14f2f38c8e1345cc364 (patch)
treeede4611788be249ca54acb8bef65a515c20fa9ff /models
parentc1337e731615ec75faba5f102d684fc4b75b190d (diff)
downloadgitea-8393ff78fce165f39d62b14f2f38c8e1345cc364.tar.gz
gitea-8393ff78fce165f39d62b14f2f38c8e1345cc364.zip
Protected tag is no internal server error (#30962) (#30970)
Backport #30962 by @KN4CK3R Fixes #30959 Adds an API test for protected tags. Fix existing tag in combination with fixtures. Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Diffstat (limited to 'models')
-rw-r--r--models/fixtures/protected_tag.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/models/fixtures/protected_tag.yml b/models/fixtures/protected_tag.yml
new file mode 100644
index 0000000000..dbec52c0c2
--- /dev/null
+++ b/models/fixtures/protected_tag.yml
@@ -0,0 +1,24 @@
+-
+ id: 1
+ repo_id: 4
+ name_pattern: /v.+/
+ allowlist_user_i_ds: []
+ allowlist_team_i_ds: []
+ created_unix: 1715596037
+ updated_unix: 1715596037
+-
+ id: 2
+ repo_id: 1
+ name_pattern: v-*
+ allowlist_user_i_ds: []
+ allowlist_team_i_ds: []
+ created_unix: 1715596037
+ updated_unix: 1715596037
+-
+ id: 3
+ repo_id: 1
+ name_pattern: v-1.1
+ allowlist_user_i_ds: [2]
+ allowlist_team_i_ds: []
+ created_unix: 1715596037
+ updated_unix: 1715596037