Skip to content

Conversation

@danigm
Copy link
Contributor

@danigm danigm commented Nov 10, 2025

This new command is useful to create custom build projects with multiple packages in gitea repository. For example if you want to test several packages together you can just do it with one line:

$ git obs testprj --help
usage: git-obs [global opts] testprj [-h] [-a API_URL] [-p PRJ] [-b BRANCH] [-f] prj_name [pkg_repo ...]

Create test project in OBS linking git packages

positional arguments:
  prj_name              test project name to create in home:USER:$prj_name
  pkg_repo              pkg gitea ref, it should be [org/]repo[#branch]

options:
  -h, --help            show this help message and exit
  -a, --api-url API_URL
                        OBS api url, defaults to api.opensuse.org
  -p, --prj PRJ         OBS base project to copy config from, defaults to openSUSE:Factory
  -b, --branch BRANCH   Git branch to use
  -f, --fork            Fork gitea pkg repos in your user home, defaults to False

$ git obs testprj -p SUSE:SLFO:Main my-test-project python-pip python-fastapi#slfo-1.2

@danigm
Copy link
Contributor Author

danigm commented Nov 10, 2025

I don't know if this new command could be interesting to add here or as a plugin, but for now I just sent here, for you to consider if it's interesting.

If not, I can create a custom plugin with useful git-workflow commands for package maintainers.

This new command is useful to create custom build projects with multiple
packages in gitea repository. For example if you want to test several
packages together you can just do it with one line:

$ git obs testprj -p SUSE:SLFO:Main my-test-project python-pip python-fastapi#slfo-1.2
@dmach
Copy link
Contributor

dmach commented Nov 11, 2025

Thanks for sending the patch.
I'll need some time to think about it so we can tweak it and put it in the right place.
I also need to consult the use case with @adrianschroeter - it is definitely legit, but I need to check if this is the right workflow or if it should be implemented differently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants