Re: Experimental Github Webhook

On 02/10/2015 06:25 AM, James M Snell wrote:
> Just for fun... I implemented an experimental webhook that receives
> event notifications on our activity streams 2.0 spec repository and
> publishes an Activity Stream. It's still fairly buggy and incomplete
> at the moment but it generally works.
> 
> The repo on github is here:
> https://github.com/jasnell/w3c-socialwg-activitystreams
> 
> The experimental feed is here: http://asgh.mybluemix.net/
> 
> The feed will show all events flowing out of github on the repo sorted
> by my recently received. A limit on the number of items received can
> be set using the limit query string param.
> 
> http://asgh.mybluemix.net/?limit=2
> 
> Paging links are added as necessary.
> 
> I repeat, this is extremely experimental at the moment. I'll make
> improvements periodically as time permits.
> 
> For those who care about such things, the code uses my Node.js
> activity streams implementation in a simple express app deployed to
> IBM's bluemix environment. The data is delivered by github and
> converted from their json to AS2 json then stored in a
> Cloudant/CouchDB database. No RDF type stuff is required. It's just
> JSON-LD expansion and compaction and a bunch of JSON manipulation.
Very cool James!

Can you please share link to the repo with code for that hook? we could
look at extending it with activities from CI once i set us up on Travis
CI :)

I wonder if you serve it as text/plain on purpose?

$ curl -I http://asgh.mybluemix.net/
HTTP/1.1 200 OK
X-Backside-Transport: OK OK
Date: Tue, 10 Feb 2015 07:57:57 GMT
X-Cf-Requestid: f617f245-06e9-4fd0-7298-4acc35f755fa
X-Powered-By: Express
Content-Type: text/plain; charset=utf-8
X-Client-IP: 94.166.168.74
X-Global-Transaction-ID: 179891778
Connection: close


BTW have you seen: http://git2prov.org/
"Git2Prov exports your Git repository to the new W3C PROV standard."
* http://git2prov.org/about.html
* https://vimeo.com/70980809

Received on Tuesday, 10 February 2015 08:00:19 UTC