mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-24 08:02:18 +02:00
fixed code to use ssh clone url for private repos
This commit is contained in:
parent
5b4a8ef4ea
commit
ecff154c56
@ -41,6 +41,12 @@ func (c *Client) GetRepos(owner string) ([]*remote.Repo, error) {
|
||||
|
||||
// loop throught the list and convert to the standard repo format
|
||||
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{
|
||||
ID: repo.ID,
|
||||
Host: githuburl.Host,
|
||||
|
@ -391,6 +391,16 @@ nav div.options .pure-button i {
|
||||
.cards .card[data-status="Error"] em {
|
||||
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="Failure"]:after,
|
||||
.cards .card[data-status="Error"]:after {
|
||||
@ -1297,6 +1307,10 @@ nav div.options .pure-button i {
|
||||
#sidebar .result[data-result="Error"] .status:before {
|
||||
content: "!";
|
||||
}
|
||||
#sidebar .result[data-result="Pending"],
|
||||
#sidebar .result[data-result="Started"] {
|
||||
background: #4ab1ce;
|
||||
}
|
||||
#main {
|
||||
flex-grow: 2;
|
||||
}
|
||||
|
@ -307,6 +307,13 @@ nav {
|
||||
border-top:5px solid @cneg;
|
||||
}
|
||||
|
||||
.l-box {
|
||||
border: 1px solid @cneg;
|
||||
&:hover {
|
||||
border:1px solid @c0;
|
||||
}
|
||||
}
|
||||
|
||||
&:after {
|
||||
font-family:'FontAwesome';
|
||||
font-size:16px;
|
||||
@ -329,6 +336,7 @@ nav {
|
||||
.transition(.4s border linear);
|
||||
.border_box;
|
||||
|
||||
|
||||
//box-shadow: inset 0 0 0 1px #dfdfdf,
|
||||
// inset 0 0 0 2px #fff,
|
||||
// 2px 2px 0 transparent;
|
||||
@ -1168,6 +1176,11 @@ nav {
|
||||
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 New Issue
Block a user