-
Notifications
You must be signed in to change notification settings - Fork 247
enhance: Improve shared issue tracker handling in RepositoryConfigure #1610
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
base: develop
Are you sure you want to change the base?
enhance: Improve shared issue tracker handling in RepositoryConfigure #1610
Conversation
…when it's not necessary (sourcegit-scm#1577) Signed-off-by: leo <[email protected]>
Refactor the handling of shared issue trackers by reusing the `Commands.SharedIssueTracker` instance. Enhance the removal logic to check for the existence of the tracker file and delete it if empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the shared issue tracker handling in the RepositoryConfigure view model by optimizing object creation and improving cleanup logic. The changes focus on reusing a single SharedIssueTracker instance and adding comprehensive file cleanup when removing issue tracker rules.
- Refactored to reuse a single SharedIssueTracker instance instead of creating multiple instances
- Enhanced removal logic to check if the tracker file exists and is empty before deletion
- Added file system operations to clean up empty issue tracker files
Whether to delete the |
072502a
to
5ce919a
Compare
Refactor the handling of shared issue trackers by reusing the
Commands.SharedIssueTracker
instance. Enhance the removal logic to check for the existence of the tracker file and delete it if empty.