mirror of
https://github.com/zhigang1992/probot.git
synced 2026-06-17 04:09:31 +08:00
14 lines
273 B
JavaScript
14 lines
273 B
JavaScript
module.exports = class Payload {
|
|
constructor(params) {
|
|
Object.assign(this, params);
|
|
}
|
|
|
|
toIssue(object) {
|
|
return Object.assign(object, {
|
|
owner: this.repository.owner.login,
|
|
repo: this.repository.name,
|
|
number: this.issue.number
|
|
});
|
|
}
|
|
};
|