mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-02 00:33:27 +01:00
[UI] Actions: I will always run make fmt before pushing
I will always run make fmt before pushing I will always run make fmt before pushing I will always run make fmt before pushing
This commit is contained in:
parent
2a0a5c6ec0
commit
62f3ff6074
2 changed files with 3 additions and 2 deletions
|
@ -22,10 +22,10 @@ import (
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetWorkflowRunRedirectURI(t *testing.T, repo_url, workflow string) string {
|
func GetWorkflowRunRedirectURI(t *testing.T, repoURL, workflow string) string {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
|
|
||||||
req := NewRequest(t, "GET", fmt.Sprintf("%s/actions/workflows/%s/runs/latest", repo_url, workflow))
|
req := NewRequest(t, "GET", fmt.Sprintf("%s/actions/workflows/%s/runs/latest", repoURL, workflow))
|
||||||
resp := MakeRequest(t, req, http.StatusTemporaryRedirect)
|
resp := MakeRequest(t, req, http.StatusTemporaryRedirect)
|
||||||
|
|
||||||
return resp.Header().Get("Location")
|
return resp.Header().Get("Location")
|
||||||
|
|
|
@ -26,6 +26,7 @@ import (
|
||||||
repo_service "code.gitea.io/gitea/services/repository"
|
repo_service "code.gitea.io/gitea/services/repository"
|
||||||
files_service "code.gitea.io/gitea/services/repository/files"
|
files_service "code.gitea.io/gitea/services/repository/files"
|
||||||
"code.gitea.io/gitea/tests"
|
"code.gitea.io/gitea/tests"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue