.
This commit is contained in:
parent
2278e2c9c7
commit
7d7f99cc20
@ -1,4 +1,4 @@
|
||||
package: client
|
||||
package: obs
|
||||
output: obs/client.go
|
||||
generate:
|
||||
models: true
|
||||
|
@ -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"
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user