Pull badge rule definitions from the other repo.

This commit is contained in:
Ralph Bean 2013-06-17 18:29:17 +00:00
parent b29df9ff97
commit 3b069f53e5
15 changed files with 1 additions and 489 deletions

View file

@ -1,33 +0,0 @@
%YAML 1.2
---
# This is some metadata about the badge
name: Associate Editor
description: Edited at least 20 wiki pages.
creator: ralph
# This is a link to the discussion about adopting this as a for-real badge.
discussion: https://github.com/oddshocks/badges/blob/master/docs/badges.rst
# A link to the image for the badge
image_url: http://upload.wikimedia.org/wikipedia/commons/5/53/PSM_V37_D209_Fisher_island_sound_rock_forming_natural_breakwater.jpg
# That's us!
issuer_id: fedora-project
# We'll perform our more costly check (defined below) only when
# we receive messages that match this 'trigger'
trigger:
topic: wiki.article.edit
# Once the check has been triggered, this defines what we actually check.
criteria:
datanommer:
filter:
topics:
- "{topic}" # The topic of the message that triggered us.
usernames:
- "{msg.user}"
operation: count
condition:
greater than or equal to: 20

View file

@ -1,37 +0,0 @@
%YAML 1.2
---
# This is some metadata about the badge
name: If you build it...
description: Succesfully completed a koji build.
creator: ralph
# This is a link to the discussion about adopting this as a for-real badge.
discussion: https://github.com/oddshocks/badges/pull/2
# A link to the image for the badge
image_url: http://upload.wikimedia.org/wikipedia/commons/5/53/PSM_V37_D209_Fisher_island_sound_rock_forming_natural_breakwater.jpg
# That's us!
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: buildsys.build.state.change
- lambda: msg.get('msg', {}).get('new', None) is 1
# Once the check has been triggered, this defines what we actually check.
criteria:
datanommer:
filter:
topics:
- "{topic}" # The topic of the message that triggered us.
usernames:
- "{msg.owner}" # The user that was created.
operation: count
condition:
greater than or equal to: 1
recipient_key: "{msg.owner}"

View file

@ -1,35 +0,0 @@
%YAML 1.2
---
# This is some metadata about the badge
name: Involvement
description: You created an account in the Fedora Account System (FAS)
creator: ralph
# This is a link to the discussion about adopting this as a for-real badge.
discussion: https://github.com/oddshocks/badges/blob/master/docs/badges.rst
# A link to the image for the badge
image_url: http://upload.wikimedia.org/wikipedia/commons/5/53/PSM_V37_D209_Fisher_island_sound_rock_forming_natural_breakwater.jpg
# That's us!
issuer_id: fedora-project
# We'll perform our more costly check (defined below) only when
# we receive messages that match this 'trigger'
trigger:
topic: fas.user.create
# Once the check has been triggered, this defines what we actually check.
criteria:
datanommer:
filter:
topics:
- "{topic}" # The topic of the message that triggered us.
usernames:
- "{msg.user}" # The user that was created.
operation: count
condition:
greater than or equal to: 1
recipient_key: "{msg.user}"

View file

@ -1,35 +0,0 @@
%YAML 1.2
---
# This is some metadata about the badge
name: Is this thing on?
description: You pushed your first bodhi update to the testing repositories.
creator: ralph
# This is a link to the discussion about adopting this as a for-real badge.
discussion: https://github.com/oddshocks/badges/pull/3
# A link to the image for the badge
image_url: http://upload.wikimedia.org/wikipedia/commons/5/53/PSM_V37_D209_Fisher_island_sound_rock_forming_natural_breakwater.jpg
# That's us!
issuer_id: fedora-project
# We'll perform our more costly check (defined below) only when
# we receive messages that match this 'trigger'
trigger:
topic: bodhi.update.request.testing
# Once the check has been triggered, this defines what we actually check.
criteria:
datanommer:
filter:
topics:
- "{topic}" # The topic of the message that triggered us.
usernames:
- "{msg.update.submitter}" # The user that was created.
operation: count
condition:
greater than or equal to: 1
recipient_key: "{msg.update.submitter}"

View file

@ -1,33 +0,0 @@
%YAML 1.2
---
# This is some metadata about the badge
name: Junior Editor
description: Edited at least 10 wiki pages.
creator: ralph
# This is a link to the discussion about adopting this as a for-real badge.
discussion: https://github.com/oddshocks/badges/blob/master/docs/badges.rst
# A link to the image for the badge
image_url: http://upload.wikimedia.org/wikipedia/commons/5/53/PSM_V37_D209_Fisher_island_sound_rock_forming_natural_breakwater.jpg
# That's us!
issuer_id: fedora-project
# We'll perform our more costly check (defined below) only when
# we receive messages that match this 'trigger'
trigger:
topic: wiki.article.edit
# Once the check has been triggered, this defines what we actually check.
criteria:
datanommer:
filter:
topics:
- "{topic}" # The topic of the message that triggered us.
usernames:
- "{msg.user}"
operation: count
condition:
greater than or equal to: 10

View file

@ -1,35 +0,0 @@
%YAML 1.2
---
# This is some metadata about the badge
name: Like a Rock
description: You pushed your first bodhi update to the stable repositories.
creator: ralph
# This is a link to the discussion about adopting this as a for-real badge.
discussion: https://github.com/oddshocks/badges/pull/3
# A link to the image for the badge
image_url: http://upload.wikimedia.org/wikipedia/commons/5/53/PSM_V37_D209_Fisher_island_sound_rock_forming_natural_breakwater.jpg
# That's us!
issuer_id: fedora-project
# We'll perform our more costly check (defined below) only when
# we receive messages that match this 'trigger'
trigger:
topic: bodhi.update.request.stable
# Once the check has been triggered, this defines what we actually check.
criteria:
datanommer:
filter:
topics:
- "{topic}" # The topic of the message that triggered us.
usernames:
- "{msg.update.submitter}" # The user that was created.
operation: count
condition:
greater than or equal to: 1
recipient_key: "{msg.update.submitter}"

View file

@ -1,33 +0,0 @@
%YAML 1.2
---
# This is some metadata about the badge
name: Master Editor
description: Edited at least 100 wiki pages.
creator: ralph
# This is a link to the discussion about adopting this as a for-real badge.
discussion: https://github.com/oddshocks/badges/blob/master/docs/badges.rst
# A link to the image for the badge
image_url: http://upload.wikimedia.org/wikipedia/commons/5/53/PSM_V37_D209_Fisher_island_sound_rock_forming_natural_breakwater.jpg
# That's us!
issuer_id: fedora-project
# We'll perform our more costly check (defined below) only when
# we receive messages that match this 'trigger'
trigger:
topic: wiki.article.edit
# Once the check has been triggered, this defines what we actually check.
criteria:
datanommer:
filter:
topics:
- "{topic}" # The topic of the message that triggered us.
usernames:
- "{msg.user}"
operation: count
condition:
greater than or equal to: 100

View file

@ -1,37 +0,0 @@
%YAML 1.2
---
# This is some metadata about the badge
name: Proven Packager
description: Became a member of the provenpackager group.
creator: ralph
# This is a link to the discussion about adopting this as a for-real badge.
discussion: https://github.com/oddshocks/badges/blob/master/docs/badges.rst
# A link to the image for the badge
image_url: http://upload.wikimedia.org/wikipedia/commons/5/53/PSM_V37_D209_Fisher_island_sound_rock_forming_natural_breakwater.jpg
# That's us!
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.group.member.sponsor
- lambda: msg.get('msg', {}).get('group', {}).get('username', None) == 'provenpackager'
# Once the check has been triggered, this defines what we actually check.
criteria:
datanommer:
filter:
topics:
- "{topic}" # The topic of the message that triggered us.
usernames:
- "{msg.user.username}"
operation: count
condition:
greater than or equal to: 1
recipient_key: "{msg.user.username}"

View file

@ -1,37 +0,0 @@
%YAML 1.2
---
# This is some metadata about the badge
name: Proven Tester
description: Became a member of the proventester group.
creator: ralph
# This is a link to the discussion about adopting this as a for-real badge.
discussion: https://github.com/oddshocks/badges/blob/master/docs/badges.rst
# A link to the image for the badge
image_url: http://upload.wikimedia.org/wikipedia/commons/5/53/PSM_V37_D209_Fisher_island_sound_rock_forming_natural_breakwater.jpg
# That's us!
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.group.member.sponsor
- lambda: msg.get('msg', {}).get('group', {}).get('username', None) == 'proventester'
# Once the check has been triggered, this defines what we actually check.
criteria:
datanommer:
filter:
topics:
- "{topic}" # The topic of the message that triggered us.
usernames:
- "{msg.user.username}"
operation: count
condition:
greater than or equal to: 1
recipient_key: "{msg.user.username}"

View file

@ -1,33 +0,0 @@
%YAML 1.2
---
# This is some metadata about the badge
name: SCM
description: Pushed a commit to a Fedora package repository.
creator: ralph
# This is a link to the discussion about adopting this as a for-real badge.
discussion: https://github.com/oddshocks/badges/blob/master/docs/badges.rst
# A link to the image for the badge
image_url: http://upload.wikimedia.org/wikipedia/commons/5/53/PSM_V37_D209_Fisher_island_sound_rock_forming_natural_breakwater.jpg
# That's us!
issuer_id: fedora-project
# We'll perform our more costly check (defined below) only when
# we receive messages that match this 'trigger'
trigger:
topic: git.receive
# Once the check has been triggered, this defines what we actually check.
criteria:
datanommer:
filter:
topics:
- "{topic}" # The topic of the message that triggered us.
usernames:
- "{msg.commit.username}"
operation: count
condition:
greater than or equal to: 1

View file

@ -1,33 +0,0 @@
%YAML 1.2
---
# This is some metadata about the badge
name: Secretary General
description: Chaired an IRC meeting.
creator: ralph
# This is a link to the discussion about adopting this as a for-real badge.
discussion: https://github.com/oddshocks/badges/blob/master/docs/badges.rst
# A link to the image for the badge
image_url: http://upload.wikimedia.org/wikipedia/commons/5/53/PSM_V37_D209_Fisher_island_sound_rock_forming_natural_breakwater.jpg
# That's us!
issuer_id: fedora-project
# We'll perform our more costly check (defined below) only when
# we receive messages that match this 'trigger'
trigger:
topic: meetbot.meeting.complete
# Once the check has been triggered, this defines what we actually check.
criteria:
datanommer:
filter:
topics:
- "{topic}" # The topic of the message that triggered us.
operation: count
condition:
greater than or equal to: 1
recipient_key: "{msg.chairs}"

View file

@ -1,33 +0,0 @@
%YAML 1.2
---
# This is some metadata about the badge
name: Senior Editor
description: Edited at least 50 wiki pages.
creator: ralph
# This is a link to the discussion about adopting this as a for-real badge.
discussion: https://github.com/oddshocks/badges/blob/master/docs/badges.rst
# A link to the image for the badge
image_url: http://upload.wikimedia.org/wikipedia/commons/5/53/PSM_V37_D209_Fisher_island_sound_rock_forming_natural_breakwater.jpg
# That's us!
issuer_id: fedora-project
# We'll perform our more costly check (defined below) only when
# we receive messages that match this 'trigger'
trigger:
topic: wiki.article.edit
# Once the check has been triggered, this defines what we actually check.
criteria:
datanommer:
filter:
topics:
- "{topic}" # The topic of the message that triggered us.
usernames:
- "{msg.user}"
operation: count
condition:
greater than or equal to: 50

View file

@ -1,37 +0,0 @@
%YAML 1.2
---
# This is some metadata about the badge
name: Sponsor
description: Became a member of the sponsor group.
creator: ralph
# This is a link to the discussion about adopting this as a for-real badge.
discussion: https://github.com/oddshocks/badges/blob/master/docs/badges.rst
# A link to the image for the badge
image_url: http://upload.wikimedia.org/wikipedia/commons/5/53/PSM_V37_D209_Fisher_island_sound_rock_forming_natural_breakwater.jpg
# That's us!
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.group.member.sponsor
- lambda: msg.get('msg', {}).get('group', {}).get('username', None) == 'sponsor'
# Once the check has been triggered, this defines what we actually check.
criteria:
datanommer:
filter:
topics:
- "{topic}" # The topic of the message that triggered us.
usernames:
- "{msg.user.username}"
operation: count
condition:
greater than or equal to: 1
recipient_key: "{msg.user.username}"

View file

@ -1,37 +0,0 @@
%YAML 1.2
---
# This is some metadata about the badge
name: What goes up...
description: Submitted a koji build that failed to build.
creator: ralph
# This is a link to the discussion about adopting this as a for-real badge.
discussion: https://github.com/oddshocks/badges/pull/2
# A link to the image for the badge
image_url: http://upload.wikimedia.org/wikipedia/commons/5/53/PSM_V37_D209_Fisher_island_sound_rock_forming_natural_breakwater.jpg
# That's us!
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: buildsys.build.state.change
- lambda: msg.get('msg', {}).get('new', None) is 3
# Once the check has been triggered, this defines what we actually check.
criteria:
datanommer:
filter:
topics:
- "{topic}" # The topic of the message that triggered us.
usernames:
- "{msg.owner}" # The user that was created.
operation: count
condition:
greater than or equal to: 1
recipient_key: "{msg.owner}"

View file

@ -35,7 +35,7 @@
dest=/usr/share/badges/rules/
owner=fedmsg group=fedmsg mode=0644
with_fileglob:
- badges/*.yml
- /srv/web/infra/badges/rules/*.yml
tags:
- config
notify: