More of the same

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2024-04-23 14:22:58 +02:00
commit 936602fbef
Signed by: abompard
GPG key ID: 31584CFEB9BF64AD
9 changed files with 17 additions and 17 deletions

View file

@ -19,7 +19,7 @@ issuer_id: fedora-project
trigger:
all:
- topic: buildsys.build.state.change
- lambda: msg.get('msg', {}).get('new', None) is 1
- lambda: msg.get('msg', {}).get('new', None) == 1
- lambda: msg.get('msg', {}).get('instance', None) == 'primary'
# This is the most complex criteria we have to date. The badge is only awarded

View file

@ -11,7 +11,7 @@ issuer_id: fedora-project
trigger:
all:
- topic: buildsys.build.state.change
- lambda: msg.get('msg', {}).get('new', None) is 1
- lambda: msg.get('msg', {}).get('new', None) == 1
# Once the check has been triggered, this defines what we actually check.
criteria:
@ -23,7 +23,7 @@ criteria:
- "%(msg.owner)s" # The user that was created.
rows_per_page: 9999999
operation:
lambda: sum(1 for msg in query.all() if msg.msg['new'] is 1)
lambda: sum(1 for msg in query.all() if msg.msg['new'] == 1)
condition:
greater than or equal to: 9001

View file

@ -11,7 +11,7 @@ issuer_id: fedora-project
trigger:
all:
- topic: buildsys.build.state.change
- lambda: msg.get('msg', {}).get('new', None) is 1
- lambda: msg.get('msg', {}).get('new', None) == 1
# Once the check has been triggered, this defines what we actually check.
criteria:
@ -23,7 +23,7 @@ criteria:
- "%(msg.owner)s" # The user that was created.
rows_per_page: 9999999
operation:
lambda: sum(1 for msg in query.all() if msg.msg['new'] is 1)
lambda: sum(1 for msg in query.all() if msg.msg['new'] == 1)
condition:
greater than or equal to: 10000

View file

@ -19,7 +19,7 @@ issuer_id: fedora-project
trigger:
all:
- topic: buildsys.build.state.change
- lambda: msg.get('msg', {}).get('new', None) is 3
- lambda: msg.get('msg', {}).get('new', None) == 3
# Once the check has been triggered, this defines what we actually check.
criteria:
@ -31,7 +31,7 @@ criteria:
- "%(msg.owner)s" # The user that was created.
rows_per_page: 9999999
operation:
lambda: sum(1 for msg in query.all() if msg.msg['new'] is 3)
lambda: sum(1 for msg in query.all() if msg.msg['new'] == 3)
condition:
greater than or equal to: 1

View file

@ -19,7 +19,7 @@ issuer_id: fedora-project
trigger:
all:
- topic: buildsys.build.state.change
- lambda: msg.get('msg', {}).get('new', None) is 3
- lambda: msg.get('msg', {}).get('new', None) == 3
# Once the check has been triggered, this defines what we actually check.
criteria:
@ -31,7 +31,7 @@ criteria:
- "%(msg.owner)s" # The user that was created.
rows_per_page: 9999999
operation:
lambda: sum(1 for msg in query.all() if msg.msg['new'] is 3)
lambda: sum(1 for msg in query.all() if msg.msg['new'] == 3)
condition:
greater than or equal to: 5

View file

@ -19,7 +19,7 @@ issuer_id: fedora-project
trigger:
all:
- topic: buildsys.build.state.change
- lambda: msg.get('msg', {}).get('new', None) is 3
- lambda: msg.get('msg', {}).get('new', None) == 3
# Once the check has been triggered, this defines what we actually check.
criteria:
@ -31,7 +31,7 @@ criteria:
- "%(msg.owner)s" # The user that was created.
rows_per_page: 9999999
operation:
lambda: sum(1 for msg in query.all() if msg.msg['new'] is 3)
lambda: sum(1 for msg in query.all() if msg.msg['new'] == 3)
condition:
greater than or equal to: 20

View file

@ -19,7 +19,7 @@ issuer_id: fedora-project
trigger:
all:
- topic: buildsys.build.state.change
- lambda: msg.get('msg', {}).get('new', None) is 3
- lambda: msg.get('msg', {}).get('new', None) == 3
# Once the check has been triggered, this defines what we actually check.
criteria:
@ -31,7 +31,7 @@ criteria:
- "%(msg.owner)s" # The user that was created.
rows_per_page: 9999999
operation:
lambda: sum(1 for msg in query.all() if msg.msg['new'] is 3)
lambda: sum(1 for msg in query.all() if msg.msg['new'] == 3)
condition:
greater than or equal to: 100

View file

@ -19,7 +19,7 @@ issuer_id: fedora-project
trigger:
all:
- topic: buildsys.build.state.change
- lambda: msg.get('msg', {}).get('new', None) is 3
- lambda: msg.get('msg', {}).get('new', None) == 3
# Once the check has been triggered, this defines what we actually check.
criteria:
@ -31,7 +31,7 @@ criteria:
- "%(msg.owner)s" # The user that was created.
rows_per_page: 9999999
operation:
lambda: sum(1 for msg in query.all() if msg.msg['new'] is 3)
lambda: sum(1 for msg in query.all() if msg.msg['new'] == 3)
condition:
greater than or equal to: 250

View file

@ -12,7 +12,7 @@ issuer_id: fedora-project
trigger:
all:
- topic: buildsys.build.state.change
- lambda: msg.get('msg', {}).get('new', None) is 1
- lambda: msg.get('msg', {}).get('new', None) == 1
- lambda: msg.get('msg', {}).get('instance', 'primary') != 'primary'
criteria:
@ -24,7 +24,7 @@ criteria:
- "%(msg.owner)s" # The user that was created.
rows_per_page: 9999999
operation:
lambda: len([msg for msg in query.all() if msg.msg['new'] is 1 and msg.msg.get('instance', 'primary') != 'primary'])
lambda: len([msg for msg in query.all() if msg.msg['new'] == 1 and msg.msg.get('instance', 'primary') != 'primary'])
condition:
greater than or equal to: 100