mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 13:45:19 +00: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
|
@ -22,10 +22,10 @@ import (
|
|||
"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()
|
||||
|
||||
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)
|
||||
|
||||
return resp.Header().Get("Location")
|
||||
|
|
|
@ -26,6 +26,7 @@ import (
|
|||
repo_service "code.gitea.io/gitea/services/repository"
|
||||
files_service "code.gitea.io/gitea/services/repository/files"
|
||||
"code.gitea.io/gitea/tests"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue