obs-staging-bot: allow forking projects and build-disabling their repositories #111

Open
epaolantonio wants to merge 2 commits from epaolantonio/autogits:epaolantonio/pkglistgen into main

2 Commits

Author SHA256 Message Date
b442025c58 obs-staging-bot: allow forking QA projects
Some checks failed
go-generate-check / go-generate-check (pull_request) Has been cancelled
If enabled in the staging configuration, the git repository linked
in the Origin project used when creating the QA projects will be forked,
in a separate organization as specified in the ForkOrganization
configuration.

This allows other stakeholders (like the pkglistgen bot) to write
in there as part of the staging pipeline.

Example configuration:

{
  "ObsProject": "SUSE:SLFO:Main",
  "StagingProject": "SUSE:SLFO:Main:PullRequest",
  "QA": [
    {
      "Name": "SLES",
      "Origin": "SUSE:SLFO:Products:SLES:16.1",
      "ForkProject": true,
      "ForkOrganization": "products-staging"
    }
  ]
}

ForkProject can be specified per-QA project, and is disabled by default.
When using ForkProject, ForkOrganization is needed as well.

The matching repository in the ForkOrganization (like
products-staging/SLES) must be present and writeable to the
autogits_staging_bot user.

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
2026-01-21 19:05:48 +01:00
009d48012c common: utils: add Slugify method
Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
2026-01-21 19:05:48 +01:00