From 34eee25bd42d19287e3e33afd169cc979ab61f37 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 11 May 2019 18:21:34 +0800 Subject: Move sdk structs to modules/structs (#6905) * move sdk structs to moduels/structs * fix tests * fix fmt * fix swagger * fix vendor --- modules/structs/repo_branch.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 modules/structs/repo_branch.go (limited to 'modules/structs/repo_branch.go') diff --git a/modules/structs/repo_branch.go b/modules/structs/repo_branch.go new file mode 100644 index 0000000000..a6ae6c1663 --- /dev/null +++ b/modules/structs/repo_branch.go @@ -0,0 +1,11 @@ +// Copyright 2016 The Gogs Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package structs + +// Branch represents a repository branch +type Branch struct { + Name string `json:"name"` + Commit *PayloadCommit `json:"commit"` +} -- cgit v1.2.3