mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-06-27 12:00:05 +02:00
fix: rename api.{List,}ActionRun to api.{List,}RepoActionRun (#8066)
This variable name conflict happened because both https://codeberg.org/forgejo/forgejo/pulls/7699 and https://codeberg.org/forgejo/forgejo/pulls/7508 introduced the same names in different places and were merged at the same time. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8066 Reviewed-by: Michael Kriese <michael.kriese@gmx.de> Co-authored-by: Earl Warren <contact@earl-warren.org> Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
parent
4dd0514022
commit
2529923dea
6 changed files with 86 additions and 86 deletions
|
@ -169,7 +169,7 @@ func TestAPIGetListActionRun(t *testing.T) {
|
|||
req.AddTokenAuth(token)
|
||||
|
||||
res := MakeRequest(t, req, http.StatusOK)
|
||||
apiRuns := new(api.ListActionRunResponse)
|
||||
apiRuns := new(api.ListRepoActionRunResponse)
|
||||
DecodeJSON(t, res, apiRuns)
|
||||
|
||||
assert.Equal(t, int64(len(tt.expectedIDs)), apiRuns.TotalCount)
|
||||
|
@ -231,7 +231,7 @@ func TestAPIGetActionRun(t *testing.T) {
|
|||
}
|
||||
|
||||
dbRun := unittest.AssertExistsAndLoadBean(t, &actions_model.ActionRun{ID: tt.runID})
|
||||
apiRun := new(api.ActionRun)
|
||||
apiRun := new(api.RepoActionRun)
|
||||
DecodeJSON(t, res, apiRun)
|
||||
|
||||
assert.Equal(t, dbRun.Index, apiRun.RunNumber)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue