summaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-06-18 01:24:55 +0200
committerGitHub <noreply@github.com>2021-06-18 01:24:55 +0200
commit75205b5669c86fb1b49daa1805f0987bd5b3cbe2 (patch)
tree74d560cf981769e01b95661e0dcce6f3f2439705 /integrations
parent29695cd6d511823ab0d233bba8c7971e5dac3e5f (diff)
downloadgitea-75205b5669c86fb1b49daa1805f0987bd5b3cbe2.tar.gz
gitea-75205b5669c86fb1b49daa1805f0987bd5b3cbe2.zip
Fix some API bugs (#16184)
* Repository object only count releases as releases (fix #16144) * EditOrg respect RepoAdminChangeTeamAccess option (fix #16013)
Diffstat (limited to 'integrations')
-rw-r--r--integrations/api_repo_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/api_repo_test.go b/integrations/api_repo_test.go
index 98c9fb6ec7..2c68d38846 100644
--- a/integrations/api_repo_test.go
+++ b/integrations/api_repo_test.go
@@ -223,7 +223,7 @@ func TestAPIViewRepo(t *testing.T) {
DecodeJSON(t, resp, &repo)
assert.EqualValues(t, 1, repo.ID)
assert.EqualValues(t, "repo1", repo.Name)
- assert.EqualValues(t, 3, repo.Releases)
+ assert.EqualValues(t, 2, repo.Releases)
assert.EqualValues(t, 1, repo.OpenIssues)
assert.EqualValues(t, 3, repo.OpenPulls)