-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle authors from pagure messages.
Pagure sends the authors of a commit in a list of dictionnary. This commit supports this case by extracting the name from the dictionnary. Fixes #60 Signed-off-by: Clement Verna <[email protected]>
- Loading branch information
1 parent
6091ce9
commit bc1aca5
Showing
4 changed files
with
154 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
%YAML 1.2 | ||
--- | ||
# This is some metadata about the badge | ||
name: Long Life to Pagure (Pagure I) | ||
description: Pushed 1 commit to a Pagure repository. | ||
creator: robyduck | ||
|
||
# This is a link to the discussion about adopting this as a for-real badge. | ||
discussion: https://pagure.io/design/issue/434 | ||
|
||
# A link to the image for the badge | ||
image_url: https://badges.fedoraproject.org/pngs/pagure-long-life-01.png | ||
# 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: pagure.git.receive | ||
|
||
# Once the check has been triggered, this defines what we actually check. | ||
criteria: | ||
datanommer: | ||
filter: | ||
topics: | ||
- "%(topic)s" # The topic of the message that triggered us. | ||
users: | ||
- "%(msg.authors)s" | ||
operation: count | ||
condition: | ||
greater than or equal to: 1 | ||
|
||
recipient: "%(msg.authors)s" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters