gitpb/repo.proto

33 lines
1.3 KiB
Protocol Buffer
Raw Normal View History

syntax = "proto3";
package gitpb;
// stores information about git repos
// If the project is in golang, also gets the go language dependacies
import "gitTag.proto";
2024-11-29 21:51:30 -06:00
import "goDep.proto";
import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
2024-11-29 21:51:30 -06:00
message Repo { // `autogenpb:marshal`
string fullPath = 1; // the actual path to the .git directory: '/home/devel/golang.org/x/tools'
google.protobuf.Timestamp lastPull = 2; // last time a git pull was done
2024-11-29 21:51:30 -06:00
string masterBranchName = 3; // git 'main' or 'master' branch name
string develBranchName = 4; // whatever the git 'devel' branch name is
string userBranchName = 5; // whatever your username branch is
GitTags tags = 6;
// things specific to golang projects
2024-11-29 21:51:30 -06:00
string goPath = 7; // `autogenpb:unique` // the logical path as used by golang: 'go.wit.com/apps/helloworld'
bool goLibrary = 8; // if this is a golang library
bool goPrimitive = 9; // if this is a golang primitive
GoDeps goDeps = 10;
google.protobuf.Timestamp lastGoDep = 11; // last time go.sum was processed
}
2024-11-29 21:51:30 -06:00
message Repos { // `autogenpb:marshal`
string uuid = 1; // I guess why not just have this on each file
string version = 2; // maybe can be used for protobuf schema change violations
repeated Repo repos = 3;
}