Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 4, 2024
1 parent a56ed9d commit ba410dd
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
34 changes: 31 additions & 3 deletions judges/label-was-attached/find-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,43 @@
---
input:
-
_id: 2
_time: 2024-05-20T23:54:44Z
_id: 1
what: issue-was-opened
issue: 41
repository: 77
who: 4444
when: 2024-05-20T23:54:44Z
details: 'A new event #38871262246 happened in GitHub yegor256/judges repository
(id: 799113787) of type ''IssuesEvent'', with the creation time 2024-05-31T03:49:55Z.'
seen:
- is-human-or-robot
- label-was-attached
-
_id: 3
what: issue-was-opened
issue: 42
repository: 77
who: 4444
when: 2024-05-20T23:54:44Z
details: 'A new event #38871262246 happened in GitHub yegor256/judges repository
(id: 799113787) of type ''IssuesEvent'', with the creation time 2024-05-31T03:49:55Z.'
seen: is-human-or-robot
-
_id: 2
what: issue-was-opened
issue: 43
repository: 77
who: 4444
when: 2024-05-20T23:54:44Z
details: 'A new event #38871262246 happened in GitHub yegor256/judges repository
(id: 799113787) of type ''IssuesEvent'', with the creation time 2024-05-31T03:49:55Z.'
seen:
- is-human-or-robot
- label-was-attached
options:
testing: true
max_labels: 1
max_labels: 10
expected:
- /fb[count(f)=4]
- /fb/f/label
- /fb/f[label and issue=42]
1 change: 1 addition & 0 deletions judges/label-was-attached/label-was-attached.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def max(repo)
on "(eq issue
(agg
(and
(not (eq seen '#{$judge}'))
(eq what 'issue-was-opened')
(eq repository #{repo})
(gt issue #{latest}))
Expand Down

0 comments on commit ba410dd

Please sign in to comment.