forked from mirrors/probot
Merge pull request #84 from bkeepers/remove-payload
Remove payload module
This commit is contained in:
commit
e59402eb34
|
@ -1,10 +1,8 @@
|
|||
const Payload = require('./payload');
|
||||
|
||||
module.exports = class Context {
|
||||
constructor(github, event) {
|
||||
this.github = github;
|
||||
this.event = event;
|
||||
this.payload = new Payload(event.payload);
|
||||
this.payload = event.payload;
|
||||
}
|
||||
|
||||
toRepo(object) {
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
module.exports = class Payload {
|
||||
constructor(params) {
|
||||
Object.assign(this, params);
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue