From 17f885175fdb5d0cf8168044233b2f003edf7f04 Mon Sep 17 00:00:00 2001 From: Justin W. Flory Date: Apr 08 2020 16:46:05 +0000 Subject: Add Google Code-In Participant badge (closes #706) This commit adds the badge design assets for the Google Code-In badge, along with a rules file to automate awarding the badge based on membership of a FAS group. I created the FAS group and made @sumantrom the owner of it: https://admin.fedoraproject.org/accounts/group/view/google-codein This will make it more straightforward to award membership badges, similar to how we already do it for multiple other groups. Closes #706. Signed-off-by: Justin W. Flory --- diff --git a/pngs/fas-google-codein.png b/pngs/fas-google-codein.png new file mode 100644 index 0000000..d10d4a2 Binary files /dev/null and b/pngs/fas-google-codein.png differ diff --git a/rules/fas-google-codein.yml b/rules/fas-google-codein.yml new file mode 100644 index 0000000..7f4fb4b --- /dev/null +++ b/rules/fas-google-codein.yml @@ -0,0 +1,28 @@ +%YAML 1.2 +--- + +name: Google Code-In Participant +description: You participated (as student, mentor, or admin) in Google Code-In with Fedora! +creator: jflory7 +discussion: https://pagure.io/fedora-badges/issue/706 +image_url: https://badges.fedoraproject.org/pngs/fas-google-codein.png +issuer_id: fedora-project + +trigger: + all: + - topic: fas.group.member.sponsor + - lambda: msg.get('msg', {}).get('group', None) == 'google-codein' + +criteria: + datanommer: + filter: + topics: + - "%(topic)s" + users: + - "%(msg.user)s" + operation: count + condition: + greater than or equal to: 1 + +recipient: "%(msg.user)s" + diff --git a/svgs/fas-google-codein.svg b/svgs/fas-google-codein.svg new file mode 100644 index 0000000..efc98ff --- /dev/null +++ b/svgs/fas-google-codein.svg @@ -0,0 +1,2281 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +