From 4aa3a8be0bfac5451fc82553647eb0617b47f192 Mon Sep 17 00:00:00 2001 From: Mathew Charles Date: Wed, 30 Sep 2015 13:55:30 -0700 Subject: [PATCH] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 727f3f3e..240dba11 100644 --- a/README.md +++ b/README.md @@ -109,9 +109,12 @@ The above messages are fully declarative, but you can also set the message prope A WebHook trigger that allows you to write job functions that can be invoked by http requests. Here's an example job function that will be invoked whenever an issue in a source GitHub repo is created or modified: ```csharp -public static void IssueChanged([WebHookTrigger] string body) +public static void GitHub([WebHookTrigger] string body, TraceWriter trace) { - // Parse and process the JSON body sent to us by GitHub + dynamic issueEvent = JObject.Parse(body); + + trace.Info(string.Format("GitHub WebHook invoked - Issue: '{0}', Action: '{1}', ", + issueEvent.issue.title, issueEvent.action)); } ```