forked from mirrors/probot
Try to get number from issue or pull request
This commit is contained in:
parent
969de5e7ee
commit
e600eda6db
|
@ -7,7 +7,7 @@ module.exports = class Payload {
|
|||
return Object.assign(object, {
|
||||
owner: this.repository.owner.login,
|
||||
repo: this.repository.name,
|
||||
number: this.issue.number
|
||||
number: (this.issue || this.pull_request || this).number
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue