This commit is contained in:
Louis Seubert 2026-01-23 22:22:32 +01:00
commit eda52ab138
Signed by: louis9902
GPG key ID: 4B9DB28F826553BD

View file

@ -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 {