Comparing version 1.1.0 to 1.2.0
@@ -5,2 +5,6 @@ # Changelog | ||
## [1.2.0] - 2019-01-02 | ||
### Added | ||
- GitLab CI support. | ||
## [1.1.0] - 2018-10-24 | ||
@@ -23,2 +27,3 @@ ### Added | ||
[1.2.0]: https://github.com/Siilwyn/get-ci-env/compare/v1.1.0...v1.2.0 | ||
[1.1.0]: https://github.com/Siilwyn/get-ci-env/compare/v1.0.3...v1.1.0 | ||
@@ -25,0 +30,0 @@ [1.0.3]: https://github.com/Siilwyn/get-ci-env/compare/v1.0.2...v1.0.3 |
{ | ||
"name": "get-ci-env", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Get and normalize continuous integration service environment variables.", | ||
@@ -36,4 +36,5 @@ "main": "src/main.js", | ||
"codefresh", | ||
"gitlab ci", | ||
"travis ci" | ||
] | ||
} |
@@ -36,2 +36,3 @@ # get-ci-env | ||
- [Codefresh](https://codefresh.io/) | ||
- [GitLab CI](https://about.gitlab.com/product/continuous-integration/) | ||
- [Travis CI](https://travis-ci.com/) | ||
@@ -38,0 +39,0 @@ |
@@ -10,2 +10,3 @@ 'use strict'; | ||
codefresh: 'CF_BUILD_ID', | ||
gitlabCi: 'GITLAB_CI', | ||
travis: 'TRAVIS', | ||
@@ -16,2 +17,3 @@ }, | ||
codefresh: env.CF_BRANCH, | ||
gitlabCi: env.CI_COMMIT_REF_NAME, | ||
travis: env.TRAVIS_PULL_REQUEST_BRANCH || env.TRAVIS_BRANCH, | ||
@@ -22,2 +24,3 @@ }, | ||
codefresh: env.CF_REVISION, | ||
gitlabCi: env.CI_COMMIT_SHA, | ||
travis: env.TRAVIS_PULL_REQUEST_SHA || env.TRAVIS_COMMIT, | ||
@@ -28,2 +31,3 @@ }, | ||
codefresh: env.CF_REPO_OWNER, | ||
gitlabCi: env.CI_PROJECT_PATH, | ||
travis: env.TRAVIS_REPO_SLUG && env.TRAVIS_REPO_SLUG.split('/')[0], | ||
@@ -34,2 +38,3 @@ }, | ||
codefresh: env.CF_REPO_NAME, | ||
gitlabCi: env.CI_PROJECT_NAME, | ||
travis: env.TRAVIS_REPO_SLUG && env.TRAVIS_REPO_SLUG.split('/')[1], | ||
@@ -40,2 +45,3 @@ }, | ||
codefresh: env.CF_PULL_REQUEST_NUMBER, | ||
gitlabCi: env.CI_MERGE_REQUEST_IID, | ||
travis: env.TRAVIS_PULL_REQUEST, | ||
@@ -47,2 +53,3 @@ }, | ||
codefresh: env.CF_PULL_REQUEST_NUMBER, | ||
gitlabCi: env.CI_MERGE_REQUEST_IID, | ||
travis: env.TRAVIS_PULL_REQUEST, | ||
@@ -49,0 +56,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38625
83
65