1
0
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:
Brad 2014-06-07 13:37:00 -07:00
parent cfed6505d5
commit 5a8eeb9c29
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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"`