-
Notifications
You must be signed in to change notification settings - Fork 0
gh13 finish shouldn't update manifest #15
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
gh13 finish shouldn't update manifest #15
Conversation
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 removes manifest update functionality from the finish command, ensuring that the manifest file is only updated during the push command rather than during the finish operation. This aligns with the principle that finish should only perform merges, while push handles manifest updates and remote synchronization.
Key Changes:
- Removed
_update_manifest_revisionsmethod and its calls from the finish command - Cleaned up trailing whitespace and formatting inconsistencies throughout the file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Repo(self.top_dir / '.repo' / 'manifests').git.switch(base) | ||
| manifest = ScManifest.from_repo_root(self.top_dir / '.repo') | ||
| for proj in manifest.projects: | ||
| if proj.lock_status == None: |
Copilot
AI
Jan 7, 2026
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.
Inconsistent None comparison style. Line 238 uses == None while lines 220 and 229 have similar comparisons. For consistency and Python best practices, all None comparisons should use is None or is not None.
| Repo(self.top_dir / '.repo' / 'manifests').git.switch('master') | ||
| manifest = ScManifest.from_repo_root(self.top_dir / '.repo') | ||
| for proj in manifest.projects: | ||
| if proj.lock_status == None: |
Copilot
AI
Jan 7, 2026
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.
Inconsistent None comparison style. Line 229 uses == None while lines 220 and 238 use is None. For consistency and Python best practices, all None comparisons should use is None or is not None.
TB-1993
left a comment
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.
Ship it!
Closes #13
Finish shouldn't update the manifest only merge. Push should be what updates the manifest.