Skip to content

Commit

Permalink
added topics, properly handle License
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaynie committed Mar 8, 2018
1 parent cfff9d8 commit 308075d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: default
.DEFAULT_GOAL := test

VERSION := 1.0.20
VERSION := 1.0.21
NAME := github-protobuf
PKG := jhaynie/$(NAME)

Expand Down
11 changes: 10 additions & 1 deletion src/repository.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ option (gogoproto.goproto_getters_all) = false;
import "user.proto";
import "repository_permission.proto";

message RepositoryLicense {
string key = 1;
string name = 2;
string spdx_id = 3;
string url = 4;
string html_url = 5;
}

message Repository {
int32 id = 1;
User owner = 2;
Expand Down Expand Up @@ -93,7 +101,8 @@ message Repository {
bool allow_merge_commit = 74;
bool archived = 75;
bool has_projects = 76;
string license = 77;
RepositoryLicense license = 77;
repeated string topics = 78;
}

//NOTE: organization can also be a string !!

0 comments on commit 308075d

Please sign in to comment.