From a75c67eb82b8042edc9472fe51eb12f188bec7ff Mon Sep 17 00:00:00 2001 From: Mateusz Stanek Date: Oct 25 2018 20:03:57 +0000 Subject: [PATCH 1/2] Added badge for sending a Happiness Packet --- diff --git a/pngs/little-things.png b/pngs/little-things.png new file mode 100644 index 0000000..03f3099 Binary files /dev/null and b/pngs/little-things.png differ diff --git a/rules/little-things.yml b/rules/little-things.yml new file mode 100644 index 0000000..e40d5aa --- /dev/null +++ b/rules/little-things.yml @@ -0,0 +1,26 @@ +%YAML 1.2 +--- + +name: Little Things +description: You have sent a Happiness Packet +creator: denim +discussion: https://pagure.io/fedora-badges/issue/627 +issuer_id: fedora-project +image_url: https://badges.fedoraproject.org/pngs/little-things.png + +trigger: + all: + - topic: org.fedoraproject.stg.happinesspacket.send + +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/little-things.svg b/svgs/little-things.svg new file mode 100644 index 0000000..2b03f20 --- /dev/null +++ b/svgs/little-things.svg @@ -0,0 +1,5913 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From b5d884f917f47f4c4d1bdfab7684c81e172f8310 Mon Sep 17 00:00:00 2001 From: Mateusz Stanek Date: Oct 25 2018 22:10:40 +0000 Subject: [PATCH 2/2] Updated badge rule --- diff --git a/rules/little-things.yml b/rules/little-things.yml index e40d5aa..744814f 100644 --- a/rules/little-things.yml +++ b/rules/little-things.yml @@ -18,9 +18,9 @@ criteria: topics: - "%(topic)s" users: - - "%(msg.user)s" + - "%(msg.sender_name)s" operation: count condition: greater than or equal to: 1 -recipient: "%(msg.user)s" +recipient: "%(msg.sender_name)s"