Skip to content

Commit

Permalink
Merge pull request #112 from relative-ci/expose-ci-service
Browse files Browse the repository at this point in the history
feat: Expose service name
  • Loading branch information
vio authored Aug 28, 2020
2 parents c48f172 + b76c738 commit dd42d17
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = (data, options, logger) => {
commit,
pr,
slug,
service,

commitMessage,

Expand All @@ -24,6 +25,7 @@ module.exports = (data, options, logger) => {
const payload = {
key,
project: slug,
service,
job: {
commit,
branch,
Expand Down
1 change: 1 addition & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const CI_ENV_VAR_NAMES = [
'isCi',
'pr',
'prBranch',
'service',
'slug',
];

Expand Down
1 change: 1 addition & 0 deletions test/webpack-plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ describe('webpack-plugin', () => {
body: JSON.stringify({
key: '123',
project: 'organization/project',
service: 'circleci',
job: {
commit: 'abcd1234',
branch: 'master',
Expand Down

0 comments on commit dd42d17

Please sign in to comment.