This commit is contained in:
Adam Majer 2024-07-19 16:54:26 +02:00
parent 2278e2c9c7
commit 7d7f99cc20
3 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
package: client
package: obs
output: obs/client.go
generate:
models: true

View File

@ -1,7 +1,7 @@
// Package client provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.
package client
package obs
import (
"context"

View File

@ -8,6 +8,7 @@ import (
"src.opensuse.org/autogits/common"
"src.opensuse.org/autogits/common/gitea-generated/models"
"src.opensuse.org/autogits/common/obs"
)
const (
@ -64,7 +65,10 @@ func processPullNotification(h *common.RequestHandler, notification *models.Noti
switch review.State {
case common.ReviewStateUnknown, common.ReviewStateRequestReview:
// start review
// start review -- create project in OBS
obsClient, _ := obs.NewClient("api.opensuse.org", obs.WithBaseURL("api.opensuse.org"))
// obsClient.GetSourceProjectNameMeta
case common.ReviewStatePending:
// waiting for build results
case common.ReviewStateApproved: