Skip to content

Commit

Permalink
Merge pull request #269 from chromaui/record-ci-service
Browse files Browse the repository at this point in the history
Record CI service name on build
  • Loading branch information
ndelangen committed Feb 10, 2021
2 parents d64c566 + a9ca2e8 commit 7ce13b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/git/getCommitAndBranch.js
Expand Up @@ -62,7 +62,7 @@ export async function getCommitAndBranch({ branchName, patchBaseRef, ci, log } =
}
}

const { isCi, prBranch, branch: ciBranch, commit: ciCommit, slug } = envCi();
const { isCi, service: ciService, prBranch, branch: ciBranch, commit: ciCommit, slug } = envCi();

// On certain CI systems, a branch is not checked out
// (instead a detached head is used for the commit).
Expand Down Expand Up @@ -95,6 +95,7 @@ export async function getCommitAndBranch({ branchName, patchBaseRef, ci, log } =
slug,
isTravisPrBuild,
fromCI,
ciService,
})}`
);

Expand All @@ -107,5 +108,6 @@ export async function getCommitAndBranch({ branchName, patchBaseRef, ci, log } =
slug,
isTravisPrBuild,
fromCI,
ciService,
};
}

0 comments on commit 7ce13b6

Please sign in to comment.