Skip to content

Commit 60031a7

Browse files
Merge pull request travis-ci#3378 from travis-ci/am-tbt-98
[TBT-98] Update documentation for default env vars
2 parents 00735eb + 1f73e11 commit 60031a7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

user/environment-variables.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ to tag the build, or to run post-build deployments.
195195
- `TRAVIS_BUILD_NUMBER`: The number of the current build (for example, "4").
196196
- `TRAVIS_BUILD_WEB_URL`: URL to the build log.
197197
- `TRAVIS_COMMIT`: The commit that the current build is testing.
198-
- `TRAVIS_COMMIT_MESSAGE`: The commit subject and body, unwrapped. PLEASE NOTE: This is not the same as *Custom Commit Message*.
198+
- `TRAVIS_COMMIT_MESSAGE`: The commit subject and body, unwrapped. It will contain *Custom Commit Message* if it was provided.
199199
- `TRAVIS_COMMIT_RANGE`: The range of commits that were included in the push
200200
or pull request. (Note that this is empty for builds triggered by the initial commit of a new branch.)
201201
- `TRAVIS_COMPILER`: Indicates the compiler used by the current job (e.g., `clang`, `gcc`).
@@ -223,6 +223,10 @@ to tag the build, or to run post-build deployments.
223223
- `TRAVIS_PULL_REQUEST_SLUG`:
224224
+ if the current job is a pull request, the slug (in the form `owner_name/repo_name`) of the repository from which the PR originated.
225225
+ if the current job is a push build, this variable is empty (`""`).
226+
- `TRAVIS_PULL_REQUEST_IS_DRAFT`:
227+
+ set to `true` if the current job is a pull request and the associated PR is in a draft state
228+
+ set to `false` if the current job is a pull request and the associated PR is not in a draft state
229+
+ if the current job is a push build, this variable is empty (`""`).
226230
- `TRAVIS_REPO_SLUG`: The slug (in form: `owner_name/repo_name`) of the repository currently being built.
227231
- `TRAVIS_SECURE_ENV_VARS`:
228232
+ set to `true` if there are any encrypted environment variables.

0 commit comments

Comments
 (0)