gitlab-ci-env
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -27,2 +27,3 @@ { | ||
"default-case": "warn", | ||
"default-param-last": "error", | ||
"eqeqeq": ["error", "always"], | ||
@@ -76,2 +77,3 @@ "func-call-spacing": ["warn", "never"], | ||
"prefer-const": "error", | ||
"prefer-regex-literals": "error", | ||
"quotes": ["error", "single"], | ||
@@ -78,0 +80,0 @@ "require-await": "error", |
# Changelog | ||
## v1.1.0 (2019-10-01) | ||
### Changed | ||
- Added new predefined variables in GitLab 12.3 | ||
## v1.0.0 (2019-09-08) | ||
Initial release with all variables in GitLab 12.2 (last changes in GitLab 12.1). |
17
index.js
@@ -39,2 +39,17 @@ 'use strict'; | ||
}, | ||
externalPullRequest: { | ||
iid: process.env.CI_EXTERNAL_PULL_REQUEST_IID, | ||
source: { | ||
branch: { | ||
sha: process.env.CI_EXTERNAL_PULL_REQUEST_SOURCE_BRANCH_SHA, | ||
name: process.env.CI_EXTERNAL_PULL_REQUEST_SOURCE_BRANCH_NAME | ||
} | ||
}, | ||
target: { | ||
branch: { | ||
sha: process.env.CI_EXTERNAL_PULL_REQUEST_TARGET_BRANCH_SHA, | ||
name: process.env.CI_EXTERNAL_PULL_REQUEST_TARGET_BRANCH_NAME | ||
} | ||
} | ||
}, | ||
isCI: process.env.CI, | ||
@@ -105,2 +120,3 @@ job: { | ||
pathSlug: process.env.CI_PROJECT_PATH_SLUG, | ||
repositoryLanguages: process.env.CI_PROJECT_REPOSITORY_LANGUAGES, | ||
url: process.env.CI_PROJECT_URL, | ||
@@ -121,2 +137,3 @@ visibility: process.env.CI_PROJECT_VISIBILITY | ||
revision: process.env.CI_RUNNER_REVISION, | ||
shortToken: process.env.CI_RUNNER_SHORT_TOKEN, | ||
tags: process.env.CI_RUNNER_TAGS, | ||
@@ -123,0 +140,0 @@ version: process.env.CI_RUNNER_VERSION |
{ | ||
"name": "gitlab-ci-env", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Get built-in environment variables exposed by GitLab CI.", | ||
@@ -29,3 +29,3 @@ "main": "index.js", | ||
"dotenv": "^8.1.0", | ||
"eslint": "^6.3.0", | ||
"eslint": "^6.5.1", | ||
"eslint-plugin-jest": "^22.17.0", | ||
@@ -32,0 +32,0 @@ "jest": "^24.9.0" |
@@ -58,2 +58,17 @@ # GitLab CI Env | ||
}, | ||
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' | ||
} | ||
} | ||
}, | ||
isCI: 'CI', | ||
@@ -124,2 +139,3 @@ job: { | ||
pathSlug: 'CI_PROJECT_PATH_SLUG', | ||
repositoryLanguages: 'CI_PROJECT_REPOSITORY_LANGUAGES', | ||
url: 'CI_PROJECT_URL', | ||
@@ -140,2 +156,3 @@ visibility: 'CI_PROJECT_VISIBILITY', | ||
revision: 'CI_RUNNER_REVISION', | ||
shortToken: 'CI_RUNNER_SHORT_TOKEN', | ||
tags: 'CI_RUNNER_TAGS', | ||
@@ -142,0 +159,0 @@ version: 'CI_RUNNER_VERSION', |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
64236
307
186
0