Skip to content

Commit

Permalink
Ignore Alerts for Org members (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher authored Aug 14, 2024
1 parent a5fa23d commit e5fb79b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/autolabel_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def create_alert_label():
"""Creates the 'Alert' label in the repository if it doesn't exist."""
alert_label = {
"name": "Alert",
"color": "FFA500", # bright orange
"color": "FF0000", # bright red
"description": "Potential spam, abuse, or off-topic.",
}
response = requests.post(f"{GITHUB_API_URL}/repos/{REPO_NAME}/labels", json=alert_label, headers=GITHUB_HEADERS)
Expand Down Expand Up @@ -241,7 +241,7 @@ def main():

if relevant_labels:
apply_labels(number, relevant_labels)
if "Alert" in relevant_labels: # and not is_org_member(username):
if "Alert" in relevant_labels and not is_org_member(username):
update_issue_pr_content(number)
close_issue_pr(number)
lock_issue_pr(number)
Expand Down

0 comments on commit e5fb79b

Please sign in to comment.