%YAML 1.2 --- name: The cat came back... description: You took ownership of a previously orphaned package. creator: ralph discussion: https://pagure.io/design/issue/7 image_url: https://badges.fedoraproject.org/pngs/pkgdb-the-cat-came-back.png issuer_id: fedora-project # This is really all that matters for this badge. trigger: all: - topic: pkgdb.owner.update - lambda: msg.get('msg', {}).get('package_listing', {}).get('point_of_contact', None) != None - lambda: msg.get('msg', {}).get('package_listing', {}).get('point_of_contact', None) != 'orphan' - lambda: msg.get('msg', {}).get('package_listing', {}).get('point_of_contact', None) == msg.get('msg', {}).get('agent', None) # This is really a throwaway check. fedbadges demands that we have one. criteria: datanommer: filter: topics: - "%(topic)s" users: - "%(msg.agent)s" operation: count condition: greater than or equal to: 1 recipient: "%(msg.agent)s"