Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

Commit 7f9340b

Browse files
committed
Adding abilit for editors to remind on reviews that are not theirs. Fixes openjournals/joss#957
1 parent 01a7792 commit 7f9340b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

whedon_api.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,8 @@ def schedule_reminder(human, size, unit, quiet=false)
268268
# Check that the person we're expecting to remind is actually
269269
# mentioned in the issue body (i.e. is a reviewer or author)
270270
issue = github_client.issue(@nwo, @issue_id)
271-
unless issue.body.match(/#{human}/m)
271+
272+
unless issue.body.match(/#{human}/m) || @config.editors.include?(@sender)
272273
respond "#{human} doesn't seem to be a reviewer or author for this submission."
273274
halt
274275
end

0 commit comments

Comments
 (0)