summaryrefslogtreecommitdiff
path: root/repo.proto
blob: c4150755a0fc1b4bcb50f3c3c5201a95c27bd243 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
syntax = "proto3";

package gitpb;

// import "google/protobuf/duration.proto"; // Import the well-known type for Timestamp
import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp

message Commit {
  string id = 1;
  string message = 2;
  string author = 3;
  google.protobuf.Timestamp       timestamp      = 4;    // the last time we heard anything from this droplet
}

message Tag {
  string name = 1;
  Commit commit = 2;
}

message Branch {
  string name = 1;
  Commit head = 2;
}

message Repository {
  string name = 1;
  repeated Branch branches = 2;
  repeated Tag tags = 3;
}