mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-06 21:57:51 +09:00
- content_encoding contains a slash => v4 artifact - updated proto files to support mime_type and no longer return errors for upload-artifact v7 - json and txt files are now previewed in browser - normalized content-disposition header creation - azure blob storage uploads directly in servedirect mode (no proxying data) - normalize content-disposition headers based on go mime package - getting both filename and filename* encoding is done via custom code Closes #36829 ----- Signed-off-by: ChristopherHX <christopher.homberger@web.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
77 lines
1.8 KiB
Protocol Buffer
77 lines
1.8 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
import "google/protobuf/wrappers.proto";
|
|
|
|
package github.actions.results.api.v1;
|
|
|
|
option go_package = "code.gitea.io/gitea/routers/api/actions";
|
|
|
|
message CreateArtifactRequest {
|
|
string workflow_run_backend_id = 1;
|
|
string workflow_job_run_backend_id = 2;
|
|
string name = 3;
|
|
google.protobuf.Timestamp expires_at = 4;
|
|
int32 version = 5;
|
|
google.protobuf.StringValue mime_type = 6;
|
|
}
|
|
|
|
message CreateArtifactResponse {
|
|
bool ok = 1;
|
|
string signed_upload_url = 2;
|
|
}
|
|
|
|
message FinalizeArtifactRequest {
|
|
string workflow_run_backend_id = 1;
|
|
string workflow_job_run_backend_id = 2;
|
|
string name = 3;
|
|
int64 size = 4;
|
|
google.protobuf.StringValue hash = 5;
|
|
}
|
|
|
|
message FinalizeArtifactResponse {
|
|
bool ok = 1;
|
|
int64 artifact_id = 2;
|
|
}
|
|
|
|
message ListArtifactsRequest {
|
|
string workflow_run_backend_id = 1;
|
|
string workflow_job_run_backend_id = 2;
|
|
google.protobuf.StringValue name_filter = 3;
|
|
google.protobuf.Int64Value id_filter = 4;
|
|
}
|
|
|
|
message ListArtifactsResponse {
|
|
repeated ListArtifactsResponse_MonolithArtifact artifacts = 1;
|
|
}
|
|
|
|
message ListArtifactsResponse_MonolithArtifact {
|
|
string workflow_run_backend_id = 1;
|
|
string workflow_job_run_backend_id = 2;
|
|
int64 database_id = 3;
|
|
string name = 4;
|
|
int64 size = 5;
|
|
google.protobuf.Timestamp created_at = 6;
|
|
}
|
|
|
|
message GetSignedArtifactURLRequest {
|
|
string workflow_run_backend_id = 1;
|
|
string workflow_job_run_backend_id = 2;
|
|
string name = 3;
|
|
}
|
|
|
|
message GetSignedArtifactURLResponse {
|
|
string signed_url = 1;
|
|
}
|
|
|
|
message DeleteArtifactRequest {
|
|
string workflow_run_backend_id = 1;
|
|
string workflow_job_run_backend_id = 2;
|
|
string name = 3;
|
|
}
|
|
|
|
message DeleteArtifactResponse {
|
|
bool ok = 1;
|
|
int64 artifact_id = 2;
|
|
}
|