mirror of
https://github.com/openSUSE/osc.git
synced 2026-02-17 17:40:43 +01:00
This introduces the ability to create multiple pull requests at once for projects managing multiple packages. Key changes: - `pr create --separate-requests`: Automatically discovers packages using `_manifest` (if present) or top-level directories. It iterates through them and creates a PR for each if changes are detected. - `pr create --dry-run`: Allows previewing the operations (source/target details, title, description) without actually creating the pull request on the server. - Refactored `pr create` logic to separate argument parsing from the creation action, enabling reuse for the batch operation. - Improved handling of "detached HEAD" state in `gitea_api.Git`: `current_branch` now returns `None` instead of an empty string, and the command raises a helpful error message instead of failing on an empty string check. - Added early exit optimization for local packages that match the target commit.