wip
This commit is contained in:
parent
046e7995ab
commit
eda52ab138
1 changed files with 209 additions and 137 deletions
10
client.go
10
client.go
|
|
@ -80,7 +80,7 @@ type CreateArtifactRequest struct {
|
|||
|
||||
type CreateArtifactResponse struct {
|
||||
Ok bool `json:"ok"`
|
||||
SignedUploadUrl string `json:"signed_upload_url"`
|
||||
SignedUploadUrl string `json:"signedUploadUrl"`
|
||||
}
|
||||
|
||||
type FinalizeArtifactRequest struct {
|
||||
|
|
@ -99,8 +99,8 @@ type FinalizeArtifactResponse struct {
|
|||
type ListArtifactsRequest struct {
|
||||
RunID string `json:"workflowRunBackendId"`
|
||||
JobRunID string `json:"workflowJobRunBackendId"`
|
||||
NameFilter string `json:nameFilter`
|
||||
IdFilter string `json:idFilter`
|
||||
NameFilter string `json:"nameFilter"`
|
||||
IdFilter string `json:"idFilter"`
|
||||
}
|
||||
|
||||
type ListArtifactsResponse struct {
|
||||
|
|
@ -112,7 +112,7 @@ type ListArtifactsResponse struct {
|
|||
Size string `json:"size"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
Digest string `json:"digest"`
|
||||
} `json:artifacts`
|
||||
} `json:"artifacts"`
|
||||
}
|
||||
|
||||
type GetSignedArtifactURLRequest struct {
|
||||
|
|
@ -166,7 +166,7 @@ func (gh *GitHub) twirp(ctx context.Context, url string, in any, out any) error
|
|||
return err
|
||||
}
|
||||
req.Header.Set("content-type", "application/json")
|
||||
req.Header.Set("Accept", "application/json")
|
||||
req.Header.Set("accept", "application/json")
|
||||
|
||||
res, err := gh.client.Do(req)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue