HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/shop.komma.nl/node_modules/env-ci/services/codefresh.js
// https://codefresh.io/docs/docs/codefresh-yaml/variables#system-provided-variables

module.exports = {
	detect({env}) {
		return Boolean(env.CF_BUILD_ID);
	},
	configuration({env}) {
		const pr = env.CF_PULL_REQUEST_NUMBER;
		const isPr = Boolean(pr);

		return {
			name: 'Codefresh',
			service: 'codefresh',
			commit: env.CF_REVISION,
			build: env.CF_BUILD_ID,
			buildUrl: env.CF_BUILD_URL,
			branch: isPr ? env.CF_PULL_REQUEST_TARGET : env.CF_BRANCH,
			pr,
			isPr,
			prBranch: isPr ? env.CF_BRANCH : undefined,
			slug: `${env.CF_REPO_OWNER}/${env.CF_REPO_NAME}`,
			root: env.CF_VOLUME_PATH,
		};
	},
};