Permalink
Browse files

Initial Commit

  • Loading branch information...
0 parents commit 1d8419922f3b5f3806a771f6e3366bb4738bd601 @joshholt committed Oct 23, 2011
Showing with 39 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +4 −0 bin/github-hook
  3. 0 config.json
  4. +15 −0 lib/github-hook2.js
  5. +19 −0 package.json
@@ -0,0 +1 @@
+node_modules
@@ -0,0 +1,4 @@
+#!/usr/bin/env node
+var GitHubHook = require('../lib/github-hook2').GitHubHook, gHook;
+gHook = new GitHubHook({ name: 'github-processor', debug:true });
+gHook.start();
No changes.
@@ -0,0 +1,15 @@
+var Hook = require('hook.io').Hook,
+ util = require('util');
+
+var GitHubHook = exports.GitHubHook = function(options) {
+ var self = this;
+ Hook.call(self, options);
+ self.on("*::processGitHub", self.processData);
+};
+
+util.inherits(GitHubHook, Hook);
+
+GitHubHook.prototype.processData = function(data) {
+ var self = this;
+ self.log(self.name, "github-hook...", data);
+};
@@ -0,0 +1,19 @@
+{
+ "author": "Josh Holt <holt.josh@gmail.com> (http://joshholt.github.com)",
+ "name": "hook.io-github-hook",
+ "description": "A webhook to process github post receive",
+ "keywords" : [ "hook.io", "hook" ],
+ "version": "0.0.1",
+ "homepage": "http://github.com/joshholt/hook.io-github",
+ "bin": {
+ "hookio-github-hook" : "./bin/github-hook"
+ },
+ "main": "./lib/github-hook2",
+ "engines": {
+ "node": ">=v0.4.7"
+ },
+ "dependencies": {
+ "hook.io" : "0.7.x"
+ },
+ "devDependencies": {}
+}

0 comments on commit 1d84199

Please sign in to comment.