forked from mirrors/probot
Remove payload module
This commit is contained in:
parent
a22025dbba
commit
49c808d354
|
@ -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