Skip to content

Commit

Permalink
Merge pull request microsoft#118 from Microsoft/gh/prEvent
Browse files Browse the repository at this point in the history
Queue issue in addition to PR when PR event is received
  • Loading branch information
geneh authored Nov 18, 2017
2 parents f69c199 + 6a6ddf4 commit 24d5a16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/visitorMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ const events = {
PageBuildEvent: event(),
PublicEvent: event(),
PullRequestEvent: event({
pull_request: pull_request
pull_request: pull_request,
issue: issue
}),
PullRequestReviewEvent: event({
pull_request: pull_request
Expand Down
4 changes: 3 additions & 1 deletion providers/fetcher/githubProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,9 @@ class GitHubProcessor {
}

PullRequestEvent(request) {
let [, repo] = this._addEventBasics(request);
let [, repo, payload] = this._addEventBasics(request);
const newPolicy = request.getNextPolicy('issue');
request.queue('issue', payload.pull_request.issue_url, newPolicy, { qualifier: `urn:repo:${repo}`, history: request.context.history });
return this._addEventResource(request, repo, 'pull_request');
}

Expand Down

0 comments on commit 24d5a16

Please sign in to comment.