Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

24 lines
597 B

// https://readme.drone.io/reference/environ
module.exports = {
detect({env}) {
return Boolean(env.DRONE);
},
configuration({env}) {
const isPr = env.DRONE_BUILD_EVENT === 'pull_request';
return {
name: 'Drone',
service: 'drone',
commit: env.DRONE_COMMIT_SHA,
tag: env.DRONE_TAG,
build: env.DRONE_BUILD_NUMBER,
branch: isPr ? env.DRONE_TARGET_BRANCH : env.DRONE_BRANCH,
job: env.DRONE_JOB_NUMBER,
pr: env.DRONE_PULL_REQUEST,
isPr,
prBranch: isPr ? env.DRONE_SOURCE_BRANCH : undefined,
slug: `${env.DRONE_REPO_OWNER}/${env.DRONE_REPO_NAME}`,
};
},
};