Commit 54cb5f28 authored by Ivanq's avatar Ivanq

Add 'Issues' and 'Pull requests' feed

parent 2d7e3741
......@@ -96,5 +96,9 @@
"indexes": ["CREATE INDEX repo_index_address ON repo_index(address)"],
"schema_changed": 3
}
},
"feeds": {
"Issues": "SELECT 'issue' AS type, issues.date_added / 1000 AS date_added, issues.title AS title, issues.body AS body, 'repo/issues/view/?' || json.site || '/' || issues.id || '@' || REPLACE(json.directory, 'data/users/', '') AS url FROM issues, json WHERE issues.json_id = json.json_id",
"Pull requests": "SELECT 'pull_request' AS type, pull_requests.date_added / 1000 AS date_added, pull_requests.title AS title, pull_requests.body AS body, 'repo/pull-requests/view/?' || json.site || '/' || pull_requests.id || '@' || REPLACE(json.directory, 'data/users/', '') AS url FROM pull_requests, json WHERE pull_requests.json_id = json.json_id"
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment