Skip to content
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

[api] implement package fork command #14830

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

adrianschroeter
Copy link
Member

This can be used to create a test build setup for a scmsync package based on an existing project.

The base package may or may not exist. May or may not use scmsync.

This is mainly implemented inside of BranchPackage class intentionaly, even when this is no source branch technically. But many api parts like repository setup can be shared this way.

@github-actions github-actions bot added Documentation 📖 Things regarding our documentation Frontend Things related to the OBS RoR app labels Aug 24, 2023
@eduardoj eduardoj added the review-app Apply this label if you want a review app started label Aug 24, 2023
@obs-bot
Copy link
Collaborator

obs-bot commented Aug 24, 2023

Review app will appear here: http://obs-reviewlab.opensuse.org/adrianschroeter-fork_command

@adrianschroeter adrianschroeter force-pushed the fork_command branch 2 times, most recently from ba424f8 to 4c7d0e2 Compare August 24, 2023 08:48
@adrianschroeter
Copy link
Member Author

@eduardoj btw, I failed to find a way to define parameters optional or required in the docu, is there a way?

@eduardoj
Copy link
Member

@eduardoj btw, I failed to find a way to define parameters optional or required in the docu, is there a way?

By default they are optional.

To mark them as required, use: required: true

If you made some change in your development environment and didn't notice any change after reloading the page, please read: https://github.com/openSUSE/open-build-service/wiki/New-Swagger-API-doc#how-to-test-it

For reference: https://swagger.io/docs/specification/describing-parameters/#required-optional

Thank you for your effort on documenting this!

@adrianschroeter adrianschroeter force-pushed the fork_command branch 2 times, most recently from 78bb918 to 60570ff Compare August 24, 2023 09:24
@codecov
Copy link

codecov bot commented Aug 24, 2023

Codecov Report

Attention: Patch coverage is 94.87179% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 86.05%. Comparing base (0dfeaa5) to head (6289097).
Report is 2 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #14830   +/-   ##
=======================================
  Coverage   86.04%   86.05%           
=======================================
  Files         793      793           
  Lines       25963    25982   +19     
=======================================
+ Hits        22340    22358   +18     
- Misses       3623     3624    +1     

@adrianschroeter
Copy link
Member Author

adrianschroeter commented Aug 24, 2023 via email

docs/api/api/api.txt Outdated Show resolved Hide resolved
@github-actions github-actions bot added Backend Things regarding the OBS backend Test Suite / CI 💉 Things related to our tests/CI labels Aug 30, 2023
@github-actions github-actions bot removed Backend Things regarding the OBS backend Test Suite / CI 💉 Things related to our tests/CI labels Aug 30, 2023
@hennevogel hennevogel force-pushed the fork_command branch 2 times, most recently from 5831131 to 34df36e Compare August 30, 2023 15:52
@hennevogel hennevogel removed the review-app Apply this label if you want a review app started label Oct 24, 2023
@adrianschroeter adrianschroeter force-pushed the fork_command branch 2 times, most recently from 47882f8 to 45a094e Compare February 29, 2024 10:26
@adrianschroeter
Copy link
Member Author

given that Eduardo and Henne have also work on it, I assume this is fine now and will merge it next week. (ignoring the random test suite failures which are unrelated).

This can be used to create a test build setup for a scmsync package
based on an existing project.

The base package may or may not exist. May or may not
use scmsync.

This is mainly implemented inside of BranchPackage class
intentionaly, even when this is no source branch technically.
But many api parts like repository setup can be shared this way.

Co-Author: Henne Vogelsang <hvogel@opensuse.org>
@hennevogel
Copy link
Member

@adrianschroeter sorry, this fell through my cracks...

@adrianschroeter adrianschroeter merged commit 6241cad into openSUSE:master Mar 1, 2024
19 checks passed
hennevogel added a commit to hennevogel/open-build-service that referenced this pull request Mar 8, 2024
hennevogel added a commit to hennevogel/open-build-service that referenced this pull request Mar 8, 2024
hennevogel added a commit to hennevogel/open-build-service that referenced this pull request Mar 8, 2024
hennevogel added a commit to hennevogel/open-build-service that referenced this pull request Mar 19, 2024
In case the target package already exists for some reason

- this is an updated pull request
- the target package was created previously

we still need to update the scmsync attribute. This broke with openSUSE#14830
hennevogel added a commit to hennevogel/open-build-service that referenced this pull request Mar 19, 2024
In case the target package already exists for some reason

- this is an updated pull request
- the target package was created previously

we still need to update the scmsync attribute. This broke with openSUSE#14830
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation 📖 Things regarding our documentation Frontend Things related to the OBS RoR app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants