summaryrefslogtreecommitdiffstats
path: root/rules/you-can-pry-it-from-my-cold-undead-hands.yml
blob: 327f7c1c048e20b3bac1ceb29ee974ee1a506604 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%YAML 1.2
---
name:           You Can Pry It From My Cold, Undead Hands
description:    You commited to an EOL repository.  Also, BRAAAAAAAAAINS.
creator:        ralph
discussion:     https://fedorahosted.org/fedora-badges/ticket/74
image_url:      https://badges.fedoraproject.org/pngs/you-can-pry-it-from-my-cold-undead-hands.png
issuer_id:      fedora-project

# Here we award the badge if the user pushes a commit to a branch that is in our blacklist
# TODO -- we have to add .fc20 when it goes EOL.
# https://fedoraproject.org/wiki/End_of_life_SOP#Badges_tasks
trigger:
  all:
  - topic:  prod.git.receive
  - lambda: "msg.get('msg', {}).get('commit', {}).get('branch', None) in ['f19', 'f18', 'f17', 'f16', 'f15']"

# This is boilerplate to make the fedbadges daemon happy
criteria:
  datanommer:
      filter:
        topics:
        - "%(topic)s"     # The topic of the message that triggered us.
        users:
        - "%(msg.commit.username)s"
      operation: count
      condition:
        greater than or equal to: 1