fix(success): PRs not recognized as resolved issues #960
+73
−40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pull Request address the case where a PR resolved in the body of an associatedPR of a commit is neither recognized as an Issue nor a PR.
Changes Made
buildRelatedIssuesQuery
's GraphQL query which fetches details for related resolved Issues found in PR body/commit message to fetch for PRs too in cases where a PR is found resolved in the PR body/commit messages. This introduced the usage of the"repository".issueOrPullRequest
object replacing the initial"repository".issue
.__typename
field to response object of all graphql request for issues and prs in the success lifecycle which was inturn used as stated in next change...type
paramater in thebuildIssuesOrPRsFromResponseNode
util, leaving its function to being performed by the newly introduced__typename
property per nodeRelated Issue
Fixes #942