Codestyle: append gofumpt and revive fixes

This commit is contained in:
ThomasBoom89 2025-03-27 22:02:05 +01:00
parent f0c0ec0db7
commit 9e433386d4
No known key found for this signature in database
GPG key ID: 787DBDE2987EC7B9

View file

@ -4,14 +4,16 @@
package integration
import (
"fmt"
"net/http"
"testing"
repo_model "code.gitea.io/gitea/models/repo"
"code.gitea.io/gitea/models/unittest"
api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/tests"
"fmt"
"github.com/stretchr/testify/assert"
"net/http"
"testing"
)
func TestAPIRepoPulls(t *testing.T) {
@ -21,8 +23,8 @@ func TestAPIRepoPulls(t *testing.T) {
repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1})
// issue id without assigned review member or review team
issueId := 5
req := NewRequest(t, "GET", fmt.Sprintf("/api/v1/repos/%s/%s/pulls/%d", repo.OwnerName, repo.Name, issueId))
issueID := 5
req := NewRequest(t, "GET", fmt.Sprintf("/api/v1/repos/%s/%s/pulls/%d", repo.OwnerName, repo.Name, issueID))
res := MakeRequest(t, req, http.StatusOK)
var pr *api.PullRequest
DecodeJSON(t, res, &pr)