Return tag along with commit

This commit is contained in:
Piotr Sarnacki 2014-09-30 12:12:05 +02:00
parent 4341461bd3
commit c2fc97b138
8 changed files with 8 additions and 0 deletions

View File

@ -48,6 +48,7 @@ module Travis
'id' => commit.id,
'sha' => commit.commit,
'branch' => commit.branch,
'tag' => commit.tag,
'message' => commit.message,
'committed_at' => format_date(commit.committed_at),
'author_name' => commit.author_name,

View File

@ -49,6 +49,7 @@ module Travis
'id' => commit.id,
'sha' => commit.commit,
'branch' => commit.branch,
'tag' => commit.tag,
'message' => commit.message,
'committed_at' => format_date(commit.committed_at),
'author_name' => commit.author_name,

View File

@ -47,6 +47,7 @@ module Travis
'id' => commit.id,
'sha' => commit.commit,
'branch' => commit.branch,
'tag' => commit.tag,
'message' => commit.message,
'committed_at' => format_date(commit.committed_at),
'author_name' => commit.author_name,

View File

@ -45,6 +45,7 @@ module Travis
'id' => commit.id,
'sha' => commit.commit,
'branch' => commit.branch,
'tag' => commit.tag,
'message' => commit.message,
'committed_at' => format_date(commit.committed_at),
'author_name' => commit.author_name,

View File

@ -28,6 +28,7 @@ describe Travis::Api::V2::Http::Build do
'id' => 1,
'sha' => '62aae5f70ceee39123ef',
'branch' => 'master',
'tag' => nil,
'message' => 'the commit message',
'compare_url' => 'https://github.com/svenfuchs/minimal/compare/master...develop',
'committed_at' => json_format_time(Time.now.utc - 1.hour),

View File

@ -28,6 +28,7 @@ describe Travis::Api::V2::Http::Builds do
'id' => commit.id,
'sha' => '62aae5f70ceee39123ef',
'branch' => 'master',
'tag' => nil,
'message' => 'the commit message',
'compare_url' => 'https://github.com/svenfuchs/minimal/compare/master...develop',
'committed_at' => json_format_time(Time.now.utc - 1.hour),

View File

@ -31,6 +31,7 @@ describe Travis::Api::V2::Http::Job do
'sha' => '62aae5f70ceee39123ef',
'message' => 'the commit message',
'branch' => 'master',
'tag' => nil,
'message' => 'the commit message',
'committed_at' => json_format_time(Time.now.utc - 1.hour),
'committer_name' => 'Sven Fuchs',

View File

@ -30,6 +30,7 @@ describe Travis::Api::V2::Http::Jobs do
'sha' => '62aae5f70ceee39123ef',
'message' => 'the commit message',
'branch' => 'master',
'tag' => nil,
'message' => 'the commit message',
'committed_at' => json_format_time(Time.now.utc - 1.hour),
'committer_name' => 'Sven Fuchs',