Move some issue methods as functions (#19255)

* Move some issue methods as functions

* Fix bug
This commit is contained in:
Lunny Xiao 2022-03-29 22:57:33 +08:00 committed by GitHub
parent bd97736b9c
commit 74731c3a5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 63 additions and 84 deletions

View file

@ -48,7 +48,7 @@ func TestCreateIssueDependency(t *testing.T) {
assert.False(t, left)
// Close #2 and check again
_, err = issue2.ChangeStatus(user1, true)
_, err = ChangeIssueStatus(issue2, user1, true)
assert.NoError(t, err)
left, err = IssueNoDependenciesLeft(issue1)