Merge pull request #161 from probot/fix-context

Fix error when receiving events
This commit is contained in:
Brandon Keepers 2017-06-16 11:27:05 -07:00 committed by GitHub
commit a083dafa1d
5 changed files with 12 additions and 8 deletions

View File

@ -1,6 +1,14 @@
# Changelog
## 7.7.0
## 0.7.1
Fixes:
- Fix error introduced in 0.7.0 that was preventing events from being received.
[View full changelog](https://github.com/probot/probot/compare/v0.7.0...v0.7.1)
## 0.7.0
Breaking Changes:

View File

@ -11,11 +11,6 @@ class Context {
this.github = github;
}
get event() {
console.warn('DEPRECATED: All properties of `context.event` are now directly available on `context` (e.g. `context.payload.sender`).');
return this;
}
/**
* Return the `owner` and `repo` params for making API requests against a
* repository.

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "probot",
"version": "0.7.0",
"version": "0.7.1",
"lockfileVersion": 1,
"dependencies": {
"acorn": {

View File

@ -1,6 +1,6 @@
{
"name": "probot",
"version": "0.7.0",
"version": "0.7.1",
"description": "a trainable robot that responds to activity on GitHub",
"repository": "https://github.com/probot/probot",
"main": "index.js",

View File

@ -7,6 +7,7 @@ describe('Context', function () {
beforeEach(function () {
event = {
event: 'push',
payload: {
repository: {
owner: {login: 'bkeepers'},