From 308075df8b3de110b2533f3bf49cc46e57c684a1 Mon Sep 17 00:00:00 2001 From: Jeff Haynie Date: Wed, 7 Mar 2018 20:28:04 -0800 Subject: [PATCH] added topics, properly handle License --- Makefile | 2 +- src/repository.proto | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 32efcc2..320312c 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: default .DEFAULT_GOAL := test -VERSION := 1.0.20 +VERSION := 1.0.21 NAME := github-protobuf PKG := jhaynie/$(NAME) diff --git a/src/repository.proto b/src/repository.proto index 96e5ca8..2072386 100644 --- a/src/repository.proto +++ b/src/repository.proto @@ -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; @@ -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 !!