From 956a67bc94bec285b2d6be1776709156f1253785 Mon Sep 17 00:00:00 2001 From: RieCatNor Date: Feb 25 2014 15:18:48 +0000 Subject: Merge branch 'master' of ssh://git.fedorahosted.org/git/badges --- diff --git a/pngs/crypto_badger.png b/pngs/crypto_badger.png deleted file mode 100644 index f2b4d0c..0000000 Binary files a/pngs/crypto_badger.png and /dev/null differ diff --git a/pngs/don't-call-it-a-come-back.png b/pngs/don't-call-it-a-come-back.png deleted file mode 100644 index 179444e..0000000 Binary files a/pngs/don't-call-it-a-come-back.png and /dev/null differ diff --git a/pngs/dont-call-it-a-come-back.png b/pngs/dont-call-it-a-come-back.png new file mode 100644 index 0000000..179444e Binary files /dev/null and b/pngs/dont-call-it-a-come-back.png differ diff --git a/pngs/fas-crypto-badger.png b/pngs/fas-crypto-badger.png new file mode 100644 index 0000000..f2b4d0c Binary files /dev/null and b/pngs/fas-crypto-badger.png differ diff --git a/rules/bodhi-take-this.yml b/rules/bodhi-take-this.yml new file mode 100644 index 0000000..2046593 --- /dev/null +++ b/rules/bodhi-take-this.yml @@ -0,0 +1,35 @@ +%YAML 1.2 +--- + +# This is some metadata about the badge +name: Take this and call me in the morning +description: You submitted an update to bodhi with one or more bugzilla bug numbers attached +creator: ralph +discussion: https://fedorahosted.org/fedora-badges/ticket/235 +image_url: https://badges.fedoraproject.org/pngs/take-this.png +issuer_id: fedora-project + +# If we receive any bodhi message for which there is more than one build, then +# award the badge to the submitter of that update. +trigger: + all: + - any: + - topic: bodhi.update.request.stable + - topic: bodhi.update.request.testing + - lambda: "len(msg.get('msg', {}).get('update', {}).get('bugs', [])) > 1" + +# This criteria check could just be left empty since the trigger matching is all +# that we need. We'll do something trivial just because fedbadges demands a +# criteria block. We can remove this in the future. +criteria: + datanommer: + filter: + topics: + - "%(topic)s" # The topic of the message that triggered us. + users: + - "%(msg.update.submitter)s" # The user that was created. + operation: count + condition: + greater than or equal to: 1 + +recipient: "%(msg.update.submitter)s" diff --git a/rules/fas-crypto-badger.yml b/rules/fas-crypto-badger.yml new file mode 100644 index 0000000..ec35581 --- /dev/null +++ b/rules/fas-crypto-badger.yml @@ -0,0 +1,28 @@ +%YAML 1.2 +--- + +name: Crypto Badger +description: You updated your SSH key with the Fedora Account System (FAS) +creator: ralph +discussion: https://fedorahosted.org/fedora-badges/ticket/56 +image_url: https://badges.fedoraproject.org/pngs/fas-crypto-badger.png +issuer_id: fedora-project + +# We'll perform our more costly check (defined below) only when +# we receive messages that match this 'trigger' +trigger: + all: + - topic: fas.user.update + - lambda: "'ssh_key' in msg.get('msg', {}).get('fields', [])" + +# Once the check has been triggered, this defines what we actually check. +criteria: + datanommer: + filter: + topics: + - "%(topic)s" # The topic of the message that triggered us. + operation: count + condition: + greater than or equal to: 1 + +recipient: "%(msg.user)s" diff --git a/svgs/crypto_badger.svg b/svgs/crypto_badger.svg deleted file mode 100644 index 3397df2..0000000 --- a/svgs/crypto_badger.svg +++ /dev/null @@ -1,2773 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/svgs/don't-call-it-a-comeback.svg b/svgs/don't-call-it-a-comeback.svg deleted file mode 100644 index 1d5e167..0000000 --- a/svgs/don't-call-it-a-comeback.svg +++ /dev/null @@ -1,1864 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/svgs/dont-call-it-a-comeback.svg b/svgs/dont-call-it-a-comeback.svg new file mode 100644 index 0000000..1d5e167 --- /dev/null +++ b/svgs/dont-call-it-a-comeback.svg @@ -0,0 +1,1864 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/svgs/fas-crypto-badger.svg b/svgs/fas-crypto-badger.svg new file mode 100644 index 0000000..3397df2 --- /dev/null +++ b/svgs/fas-crypto-badger.svg @@ -0,0 +1,2773 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +