mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-22 15:18:43 +00:00
fixed code to use ssh clone url for private repos
This commit is contained in:
parent
5b4a8ef4ea
commit
ecff154c56
4 changed files with 34 additions and 1 deletions
|
@ -41,6 +41,12 @@ func (c *Client) GetRepos(owner string) ([]*remote.Repo, error) {
|
||||||
|
|
||||||
// loop throught the list and convert to the standard repo format
|
// loop throught the list and convert to the standard repo format
|
||||||
for _, repo := range repos {
|
for _, repo := range repos {
|
||||||
|
// if the repository is private we should use the ssh
|
||||||
|
// url to clone, else we should use the git url
|
||||||
|
if repo.Private {
|
||||||
|
repo.CloneUrl = repo.SshUrl
|
||||||
|
}
|
||||||
|
|
||||||
result = append(result, &remote.Repo{
|
result = append(result, &remote.Repo{
|
||||||
ID: repo.ID,
|
ID: repo.ID,
|
||||||
Host: githuburl.Host,
|
Host: githuburl.Host,
|
||||||
|
|
|
@ -391,6 +391,16 @@ nav div.options .pure-button i {
|
||||||
.cards .card[data-status="Error"] em {
|
.cards .card[data-status="Error"] em {
|
||||||
border-top: 5px solid #e97041;
|
border-top: 5px solid #e97041;
|
||||||
}
|
}
|
||||||
|
.cards .card[data-status="Killed"] .l-box,
|
||||||
|
.cards .card[data-status="Failure"] .l-box,
|
||||||
|
.cards .card[data-status="Error"] .l-box {
|
||||||
|
border: 1px solid #e97041;
|
||||||
|
}
|
||||||
|
.cards .card[data-status="Killed"] .l-box:hover,
|
||||||
|
.cards .card[data-status="Failure"] .l-box:hover,
|
||||||
|
.cards .card[data-status="Error"] .l-box:hover {
|
||||||
|
border: 1px solid #262626;
|
||||||
|
}
|
||||||
.cards .card[data-status="Killed"]:after,
|
.cards .card[data-status="Killed"]:after,
|
||||||
.cards .card[data-status="Failure"]:after,
|
.cards .card[data-status="Failure"]:after,
|
||||||
.cards .card[data-status="Error"]:after {
|
.cards .card[data-status="Error"]:after {
|
||||||
|
@ -1297,6 +1307,10 @@ nav div.options .pure-button i {
|
||||||
#sidebar .result[data-result="Error"] .status:before {
|
#sidebar .result[data-result="Error"] .status:before {
|
||||||
content: "!";
|
content: "!";
|
||||||
}
|
}
|
||||||
|
#sidebar .result[data-result="Pending"],
|
||||||
|
#sidebar .result[data-result="Started"] {
|
||||||
|
background: #4ab1ce;
|
||||||
|
}
|
||||||
#main {
|
#main {
|
||||||
flex-grow: 2;
|
flex-grow: 2;
|
||||||
}
|
}
|
||||||
|
|
|
@ -307,6 +307,13 @@ nav {
|
||||||
border-top:5px solid @cneg;
|
border-top:5px solid @cneg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.l-box {
|
||||||
|
border: 1px solid @cneg;
|
||||||
|
&:hover {
|
||||||
|
border:1px solid @c0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&:after {
|
&:after {
|
||||||
font-family:'FontAwesome';
|
font-family:'FontAwesome';
|
||||||
font-size:16px;
|
font-size:16px;
|
||||||
|
@ -329,6 +336,7 @@ nav {
|
||||||
.transition(.4s border linear);
|
.transition(.4s border linear);
|
||||||
.border_box;
|
.border_box;
|
||||||
|
|
||||||
|
|
||||||
//box-shadow: inset 0 0 0 1px #dfdfdf,
|
//box-shadow: inset 0 0 0 1px #dfdfdf,
|
||||||
// inset 0 0 0 2px #fff,
|
// inset 0 0 0 2px #fff,
|
||||||
// 2px 2px 0 transparent;
|
// 2px 2px 0 transparent;
|
||||||
|
@ -1168,6 +1176,11 @@ nav {
|
||||||
content:"!";
|
content:"!";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&[data-result="Pending"],
|
||||||
|
&[data-result="Started"] {
|
||||||
|
background:@link2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
server/app/styles/drone.min.css
vendored
2
server/app/styles/drone.min.css
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue