Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

fix: close pr issues and stop running handlers twice #728

Merged
merged 18 commits into from
Sep 19, 2023

Conversation

seprintour
Copy link
Contributor

@seprintour seprintour commented Sep 6, 2023

Resolves #710 and #716

QA: Seprintour-Test/test#22

Steps:

  • closePullRequestForAnIssue was called twice, i removed it from the unassign function so unassigning is now certain (no blocking request, closing PRs by looping was pretty intensive)

  • Refactored closePullRequestForAnIssue to use the gitIssueParser to fetch the exact PR open for an issue instead of looping all PRs. (Closing is more certain and 1 memory intensive task down)

@netlify
Copy link

netlify bot commented Sep 6, 2023

Deploy Preview for ubiquibot-staging ready!

Name Link
🔨 Latest commit c6ce0ea
🔍 Latest deploy log https://app.netlify.com/sites/ubiquibot-staging/deploys/6508a934b71b6400087abd5d
😎 Deploy Preview https://deploy-preview-728--ubiquibot-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@seprintour
Copy link
Contributor Author

@rndquu @whilefoo

@seprintour
Copy link
Contributor Author

Update here?

Copy link
Collaborator

@whilefoo whilefoo left a comment

Choose a reason for hiding this comment

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

can you rework gitLinkedPrParser to return an array of PRs and move other functionality (like retrieving PR and checking merged date to get latest merged PR) outside the function. basically you are merging your work into gitLinkedPrParser and then removing gitIssueParser

@seprintour
Copy link
Contributor Author

can you rework gitLinkedPrParser to return an array of PRs and move other functionality (like retrieving PR and checking merged date to get latest merged PR) outside the function. basically you are merging your work into gitLinkedPrParser and then removing gitIssueParser

I don't understand what you mean by get it outside the function

@whilefoo
Copy link
Collaborator

functions calling gitLinkedPrParser can make additional transformations and gitLinkedPrParser should only be focused on returning array of PRs to make it generic as possible

@seprintour
Copy link
Contributor Author

functions calling gitLinkedPrParser can make additional transformations and gitLinkedPrParser should only be focused on returning array of PRs to make it generic as possible

Done, check it out @whilefoo

src/helpers/parser.ts Outdated Show resolved Hide resolved
src/helpers/parser.ts Outdated Show resolved Hide resolved
src/helpers/parser.ts Outdated Show resolved Hide resolved
src/helpers/parser.ts Outdated Show resolved Hide resolved
src/helpers/parser.ts Outdated Show resolved Hide resolved
src/helpers/parser.ts Show resolved Hide resolved
src/helpers/parser.ts Outdated Show resolved Hide resolved
src/helpers/parser.ts Outdated Show resolved Hide resolved
src/helpers/parser.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@whilefoo whilefoo left a comment

Choose a reason for hiding this comment

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

can you post QA?

Copy link
Contributor

@wannacfuture wannacfuture left a comment

Choose a reason for hiding this comment

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

Looks good to me

@seprintour
Copy link
Contributor Author

can you post QA?

I have QA in description

@seprintour
Copy link
Contributor Author

@0xcodercrane ping

@0xcodercrane 0xcodercrane merged commit e734904 into ubiquity:development Sep 19, 2023
8 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linked Pull Request Not Closed On Expired Task
4 participants