gitlab-ci-env
Advanced tools
Comparing version 1.1.0 to 1.2.0
# Changelog | ||
## v1.2.0 (2019-10-22) | ||
### Changed | ||
- Added new predefined variables in GitLab 12.4 (CI_DEFAULT_BRANCH, CI_PROJECT_TITLE) | ||
## v1.1.0 (2019-10-01) | ||
@@ -4,0 +11,0 @@ |
@@ -29,2 +29,3 @@ 'use strict'; | ||
debugTrace: process.env.CI_DEBUG_TRACE, | ||
defaultBranch: process.env.CI_DEFAULT_BRANCH, | ||
deploy: { | ||
@@ -121,2 +122,3 @@ password: process.env.CI_DEPLOY_PASSWORD, | ||
repositoryLanguages: process.env.CI_PROJECT_REPOSITORY_LANGUAGES, | ||
title: process.env.CI_PROJECT_TITLE, | ||
url: process.env.CI_PROJECT_URL, | ||
@@ -123,0 +125,0 @@ visibility: process.env.CI_PROJECT_VISIBILITY |
{ | ||
"name": "gitlab-ci-env", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Get built-in environment variables exposed by GitLab CI.", | ||
@@ -8,3 +8,4 @@ "main": "index.js", | ||
"start": "node index.js", | ||
"test": "jest --ci" | ||
"test": "jest --ci", | ||
"lint": "eslint **/*.js" | ||
}, | ||
@@ -29,6 +30,7 @@ "repository": { | ||
"devDependencies": { | ||
"dotenv": "^8.1.0", | ||
"dotenv": "^8.2.0", | ||
"eslint": "^6.5.1", | ||
"eslint-plugin-jest": "^22.17.0", | ||
"jest": "^24.9.0" | ||
"eslint-plugin-jest": "^22.20.0", | ||
"jest": "^24.9.0", | ||
"jest-junit": "^9.0.0" | ||
}, | ||
@@ -41,2 +43,13 @@ "jest": { | ||
], | ||
"reporters": [ | ||
"default", | ||
[ | ||
"jest-junit", | ||
{ | ||
"suiteNameTemplate": "{filename}", | ||
"classNameTemplate": "{classname}", | ||
"titleTemplate": "{title}" | ||
} | ||
] | ||
], | ||
"verbose": true, | ||
@@ -43,0 +56,0 @@ "testEnvironment": "node" |
@@ -48,2 +48,3 @@ # GitLab CI Env | ||
debugTrace: 'CI_DEBUG_TRACE', | ||
defaultBranch: 'CI_DEFAULT_BRANCH', | ||
deploy: { | ||
@@ -60,15 +61,15 @@ password: 'CI_DEPLOY_PASSWORD', | ||
externalPullRequest: { | ||
iid: 'CI_EXTERNAL_PULL_REQUEST_IID', | ||
source: { | ||
branch: { | ||
sha: 'CI_EXTERNAL_PULL_REQUEST_SOURCE_BRANCH_SHA', | ||
name: 'CI_EXTERNAL_PULL_REQUEST_SOURCE_BRANCH_NAME' | ||
} | ||
}, | ||
target: { | ||
branch: { | ||
sha: 'CI_EXTERNAL_PULL_REQUEST_TARGET_BRANCH_SHA', | ||
name: 'CI_EXTERNAL_PULL_REQUEST_TARGET_BRANCH_NAME' | ||
} | ||
iid: 'CI_EXTERNAL_PULL_REQUEST_IID', | ||
source: { | ||
branch: { | ||
sha: 'CI_EXTERNAL_PULL_REQUEST_SOURCE_BRANCH_SHA', | ||
name: 'CI_EXTERNAL_PULL_REQUEST_SOURCE_BRANCH_NAME' | ||
} | ||
}, | ||
target: { | ||
branch: { | ||
sha: 'CI_EXTERNAL_PULL_REQUEST_TARGET_BRANCH_SHA', | ||
name: 'CI_EXTERNAL_PULL_REQUEST_TARGET_BRANCH_NAME' | ||
} | ||
} | ||
}, | ||
@@ -141,2 +142,3 @@ isCI: 'CI', | ||
repositoryLanguages: 'CI_PROJECT_REPOSITORY_LANGUAGES', | ||
title: 'CI_PROJECT_TITLE', | ||
url: 'CI_PROJECT_URL', | ||
@@ -143,0 +145,0 @@ visibility: 'CI_PROJECT_VISIBILITY', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
66364
15
309
188
5