Skip to content
Permalink
Browse files

fix(api): get git tag information from correct json location

  • Loading branch information
cooperaj authored and jkuri committed Sep 18, 2018
1 parent 59de2f1 commit 81e80acfb488808761f465fa4e9f836a286bbc38
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/api/env-variables.ts
@@ -48,8 +48,8 @@ export function generate(data: any): EnvVariables {
request.data.pullrequest.source.branch.name ||
request.data.object_attributes && request.data.object_attributes.source_branch ||
request.data.pull_request && request.data.pull_request.head_branch : '';
let tag = request.ref && request.ref.startsWith('refs/tags/') ?
request.ref.replace('refs/tags/', '') : null;
let tag = request.data.ref && request.data.ref.startsWith('refs/tags/') ?
request.data.ref.replace('refs/tags/', '') : null;

set(envs, 'ABSTRUSE_BRANCH', request.branch);
set(envs, 'ABSTRUSE_BUILD_ID', data.build_id);

0 comments on commit 81e80ac

Please sign in to comment.
You can’t perform that action at this time.