Skip to content
Permalink
Browse files

fix(docs): add correct key for commit sha value

  • Loading branch information...
OrthoDex committed Oct 1, 2018
1 parent d6f2a59 commit de9b822c5ef79fb792d36da2d1ced83ce2cd49ce
Showing with 3 additions and 3 deletions.
  1. +3 −3 docs/intro/tutorial04.md
@@ -99,7 +99,7 @@ Given this, the role of the `brigade.js` file is to declare event handlers. And
const { events } = require("brigadier");
events.on("push", function(e, project) {
console.log("received push for commit " + e.commit)
console.log("received push for commit " + e.revision.commit)
})
```

@@ -113,7 +113,7 @@ In our script above, we just log the comment:
received push for commit e459558...
```

Note that `e.commit` holds the git commit SHA for the commit that was just pushed.
Note that `e.revision.commit` holds the git commit SHA for the commit that was just pushed.

# Add a job

@@ -125,7 +125,7 @@ Edit `brigade.js` again so it looks like this:
const { events, Job } = require("brigadier");
events.on("push", function(e, project) {
console.log("received push for commit " + e.commit)
console.log("received push for commit " + e.revision.commit)
// Create a new job
var node = new Job("test-runner")

0 comments on commit de9b822

Please sign in to comment.
You can’t perform that action at this time.