1
0
mirror of https://github.com/openSUSE/osc.git synced 2026-02-20 02:35:29 +01:00
Files
github.com_openSUSE_osc/osc/commands_git
Antonello Tartamo 8092d579bd git-obs: Add --separate-requests and --dry-run to pr create
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.
2026-02-08 19:01:54 +01:00
..
2025-01-15 17:02:16 +01:00