mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-24 08:02:18 +02:00
adding Repo.Host to commit feed data structure
This commit is contained in:
parent
cfed6505d5
commit
5a8eeb9c29
@ -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 New Issue
Block a user