From 141c26cfce61fb6399cecceb3ee10790d25b8d73 Mon Sep 17 00:00:00 2001 From: Simon Lecoq <22963968+lowlighter@users.noreply.github.com> Date: Sat, 31 Jul 2021 12:43:00 +0200 Subject: [PATCH] Achievements plugin: add new "deployer" achievement (#434) --- source/plugins/achievements/list/users.mjs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/plugins/achievements/list/users.mjs b/source/plugins/achievements/list/users.mjs index f71a51b3..ff077040 100644 --- a/source/plugins/achievements/list/users.mjs +++ b/source/plugins/achievements/list/users.mjs @@ -247,6 +247,21 @@ export default async function({list, login, data, computed, imports, graphql, qu }) } + //Deployer + { + const value = computed.repositories?.deployments + const unlock = null + + list.push({ + title:"Deployer", + text:`Repositories have been deployed ${value} time${imports.s(value)}`, + icon:'', + ...rank(value, [1, 200, 500, 1000]), + value, + unlock:new Date(unlock?.createdAt), + }) + } + //Verified { const value = !/This user hasn't uploaded any GPG keys/i.test((await imports.axios.get(`https://github.com/${login}.gpg`)).data)