Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(success): PRs not recognized as resolved issues #960

Merged
merged 7 commits into from
Nov 6, 2024

Conversation

babblebey
Copy link
Member

@babblebey babblebey commented Nov 1, 2024

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

  • Updated 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.
  • Introduced __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...
  • Removed the type paramater in the buildIssuesOrPRsFromResponseNode util, leaving its function to being performed by the newly introduced __typename property per node
  • Updated tests according
    • success unit test
    • integrations

Related Issue

Fixes #942

Copy link
Member

@travi travi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is great! thanks for digging in and finding a resolution to this!

Copy link
Member

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's goo!!

@gr2m gr2m merged commit 7cde776 into master Nov 6, 2024
6 checks passed
@gr2m gr2m deleted the fix/pr-close-pr-support branch November 6, 2024 18:20
Copy link

github-actions bot commented Nov 6, 2024

🎉 This PR is included in version 11.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PRs are no longer resolved with closed/fixed keywords
3 participants