You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-11-23 21:44:44 +02:00
Buildin Env Vars, use _URL for all links/urls (#1794)
based on https://framadate.org/jVSQHwIGfJYy82IL close #1793
This commit is contained in:
@@ -116,8 +116,8 @@ func TestWithMetadata(t *testing.T) {
|
||||
if compiler.env["CI_REPO_NAME"] != strings.Split(metadata.Repo.Name, "/")[1] {
|
||||
t.Errorf("WithMetadata must set CI_REPO_NAME")
|
||||
}
|
||||
if compiler.env["CI_REPO_LINK"] != metadata.Repo.Link {
|
||||
t.Errorf("WithMetadata must set CI_REPO_LINK")
|
||||
if compiler.env["CI_REPO_URL"] != metadata.Repo.Link {
|
||||
t.Errorf("WithMetadata must set CI_REPO_URL")
|
||||
}
|
||||
if compiler.env["CI_REPO_CLONE_URL"] != metadata.Repo.CloneURL {
|
||||
t.Errorf("WithMetadata must set CI_REPO_CLONE_URL")
|
||||
|
||||
Reference in New Issue
Block a user