Skip to content

Commit

Permalink
repokitteh: Ignore non-envoy repo prs (#18141)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax authored Sep 16, 2021
1 parent d7fdbbc commit 19a4823
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 44 deletions.
43 changes: 0 additions & 43 deletions ci/repokitteh/modules/newcontributor.star

This file was deleted.

9 changes: 8 additions & 1 deletion ci/repokitteh/modules/newpr.star
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ def should_message_newcontributor(action, issue_number):
def send_newcontributor_message(sender):
github.issue_create_comment(NEW_CONTRIBUTOR_MESSAGE % sender)

def _pr(action, issue_number, sender, config, draft):
def is_envoy_repo(repo_owner, repo_name):
return (
repo_owner == "envoyproxy"
and repo_name == "envoy")

def _pr(action, issue_number, sender, config, draft, repo_owner, repo_name):
if not is_envoy_repo(repo_owner, repo_name):
return
if should_message_newcontributor(action, issue_number):
send_newcontributor_message(sender)
if action == 'opened' and draft:
Expand Down

0 comments on commit 19a4823

Please sign in to comment.