Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/w3c/webauthn into vijaybh…
Browse files Browse the repository at this point in the history
…/editorial-refactor
  • Loading branch information
vijaybh committed Apr 19, 2016
2 parents ec2cb57 + 14db086 commit 87a7af0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/id.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,19 @@ CI_REPO = $(word 2,$(subst /, ,$(TRAVIS_REPO_SLUG)))$(CIRCLE_PROJECT_REPONAME)
ifeq (true,$(CI))
CI_REPO_FULL = $(CI_USER)/$(CI_REPO)
endif
CI_IS_PR = $(if $(CI_PULL_REQUESTS),true,$(if $(TRAVIS_PULL_REQUEST),$(TRAVIS_PULL_REQUEST),false))

ifeq (true, $(CI_PULL_REQUESTS))
# If CI_PULL_REQUESTS is true, always treat as a PR.
CI_IS_PR = true
else
ifeq (false, $(TRAVIS_PULL_REQUEST))
# If $TRAVIS_PULL_REQUEST is the word 'false', it's a branch build.
CI_IS_PR = false
else
# Otherwise, this is a PR and $TRAVIS_PULL_REQUEST is the PR number
CI_IS_PR = true
endif
endif

# Github guesses
ifndef CI_REPO_FULL
Expand Down

0 comments on commit 87a7af0

Please sign in to comment.