mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +00:00
adding Repo.Host to commit feed data structure
This commit is contained in:
parent
cfed6505d5
commit
5a8eeb9c29
2 changed files with 2 additions and 1 deletions
|
@ -81,7 +81,7 @@ LIMIT 20
|
|||
|
||||
// SQL query to retrieve the latest Commits for a user's repositories.
|
||||
const listUserQuery = `
|
||||
SELECT r.repo_remote, r.repo_owner, r.repo_name, c.*
|
||||
SELECT r.repo_remote, r.repo_host, r.repo_owner, r.repo_name, c.*
|
||||
FROM commits c, repos r, perms p
|
||||
WHERE c.repo_id=r.repo_id
|
||||
AND r.repo_id=p.repo_id
|
||||
|
|
|
@ -56,6 +56,7 @@ func (c *Commit) FinishedString() string {
|
|||
|
||||
type CommitRepo struct {
|
||||
Remote string `meddler:"repo_remote" json:"remote"`
|
||||
Host string `meddler:"repo_host" json:"host"`
|
||||
Owner string `meddler:"repo_owner" json:"owner"`
|
||||
Name string `meddler:"repo_name" json:"name"`
|
||||
|
||||
|
|
Loading…
Reference in a new issue