Simple scm badge.

This commit is contained in:
Ralph Bean 2013-06-14 15:55:30 +00:00
parent 4391c6dcc1
commit e7d1860758

View file

@ -0,0 +1,33 @@
%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