forked from mirrors/probot
Merge pull request #161 from probot/fix-context
Fix error when receiving events
This commit is contained in:
commit
a083dafa1d
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -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:
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "probot",
|
||||
"version": "0.7.0",
|
||||
"version": "0.7.1",
|
||||
"lockfileVersion": 1,
|
||||
"dependencies": {
|
||||
"acorn": {
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -7,6 +7,7 @@ describe('Context', function () {
|
|||
|
||||
beforeEach(function () {
|
||||
event = {
|
||||
event: 'push',
|
||||
payload: {
|
||||
repository: {
|
||||
owner: {login: 'bkeepers'},
|
||||
|
|
Loading…
Reference in New Issue