Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="">
<author>Dan Beam</author>
<sampleQuery>select * from {table} where id='danbeam'</sampleQuery>
<select itemPath="commits.commit" produces="XML">
<key id="id" type="xs:string" paramType="path" required="true" />
// pull down the tables required
y.use("", "github.user.repos");
y.use("", "github.repo.commits");
// make the query
var commit, match,
useful = <commits></commits>;
commits = y.query('select commit from github.repo.commits where id="' + id + '" and repo in (select from github.user.repos where id="' + id + '")');
// TODO: what's the best way to handle failure?
if (commits.results) {
// look through each commit
for each (commit in commits.results.commits.commit) {
// filter only our login
if (id === {
if (match = commit.url.match(/\/[^\/]+\/([^\/]+)\/.+/)) {
commit.repository = match[1];
// add this commit to our useful list
useful.commits += commit
// only send back the useful results
response.object = useful;