Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #10 from shuheiktgw/chenge_tag_to_struct
Browse files Browse the repository at this point in the history
Chenge Tag from string to struct
  • Loading branch information
shuheiktgw authored Jan 27, 2019
2 parents 452b2fd + 766bf9d commit e4908e7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion builds.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type Build struct {
// The branch the build is associated with
Branch MinimalBranch `json:"branch,omitempty"`
// The build's tag
Tag string `json:"tag,omitempty"`
Tag MinimalTag `json:"tag,omitempty"`
// The commit the build is associated with
Commit MinimalCommit `json:"commit,omitempty"`
// List of jobs that are part of the build's matrix
Expand Down
17 changes: 17 additions & 0 deletions tags.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright (c) 2015 Ableton AG, Berlin. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package travis

// MinimalTag is a minimal representation of a Travis CI tag
type MinimalTag struct {
// Value uniquely identifying a repository of the build belongs to
RepositoryId uint `json:"repository_id"`
// Name of the tag
Name string `json:"name,omitempty"`
// Id of a last build on the branch
LastBuildId uint `json:"last_build_id"`
Metadata
}

0 comments on commit e4908e7

Please sign in to comment.