Try to get number from issue or pull request

This commit is contained in:
Brandon Keepers 2016-10-29 13:07:24 -05:00
parent 969de5e7ee
commit e600eda6db
No known key found for this signature in database
GPG Key ID: F9533396D5FACBF6
1 changed files with 1 additions and 1 deletions

View File

@ -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
});
}
};