Skip to content

Instantly share code, notes, and snippets.

@NullEntity
Forked from tekkub/hook_template.rb
Created February 13, 2013 10:13
Show Gist options
  • Save NullEntity/4943593 to your computer and use it in GitHub Desktop.
Save NullEntity/4943593 to your computer and use it in GitHub Desktop.
{
:before => before,
:after => after,
:ref => ref,
:commits => [{
:id => commit.id,
:message => commit.message,
:timestamp => commit.committed_date.xmlschema,
:url => commit_url,
:added => array_of_added_paths,
:removed => array_of_removed_paths,
:modified => array_of_modified_paths,
:author => {
:name => commit.author.name,
:email => commit.author.email,
:username => commit.author.username
}
}],
:repository => {
:name => repository.name,
:url => repo_url,
:pledgie => repository.pledgie.id,
:description => repository.description,
:homepage => repository.homepage,
:watchers => repository.watchers.size,
:forks => repository.forks.size,
:private => repository.private?,
:owner => {
:name => repository.owner.login,
:email => repository.owner.email
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment