Skip to content

git-obs pr does not work and has bad UX #2062

@hramrach

Description

@hramrach

Describe the bug
The main motivation for git-obs pr was to streamline package submission between code streams.

It does not work for the purpose.

Submission entirely within pool fails.

Submission across gitea instances is not possible.

Works neither for factory->leap nor factory->slfo nor develproject->slfo. May work for develproject->factory at least but not sure how helpful that one is.

Versions

  • Operating system: (openSUSE Leap 16.0)
  • Packages: 544631b

To Reproduce
Steps to reproduce the behavior:

./git-obs.py -G src.opensuse.org pr create --source-owner pool --source-repo davfs2 --source-branch factory --target-branch leap-16.1
Using the following Gitea settings:

  • Config path: /home/hramrach/.config/tea/config.yml
  • Login (name of the entry in the config file): src.opensuse.org
  • URL: https://src.opensuse.org
  • User: michals

ERROR: Unable to create a pull request because repo 'pool/davfs2' is not a fork

Expected behavior
opens a SR from Factory to Leap

Additional context
The purpose of git-obs pr is to replace

osc sr sourceproject package targetproject

The sourceproject and targetproject can be obtained by either osc se or osc maintained, and the output of these commands directly pasted as input to osc sr. osc maintained does not work with git projects. The output of oec se that now gives the git projects that contain the package does not contain the required parameters to pass to git-obs pr. The git-obs pr requires the arguments interspersed with many lengthy arguments that the user has to know, type every time without error, etc. Compare the the osc sr that has only few arguments, all can be obtained from osc se or osc maintained directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions