Skip to content

Commit 63fb3b8

Browse files
committed
fix(review-bot): final fix for indexes
1 parent c2b41f5 commit 63fb3b8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bin/check-review-dates.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import json
66

77
DEFAULT_VAL_FREQ = 6
8-
FILEPATH = "./" ## for local testing use "../"
8+
FILEPATH = "./" ## for local testing use "../" and shift filepath_list[] indexes +1
99

1010
def convert_to_date_and_delta(val_date, val_freq):
1111
"Converts validation date string to datetime and validation frequency string (months) to timedelta."
@@ -93,8 +93,6 @@ def get_doc_cat_name(filepath, prod_cat_ref):
9393
category_product = "FAQ"
9494
else:
9595
# catches everything in pages
96-
print("Currently checking FILEPATH", filepath)
97-
print("filepath_list is", filepath_list)
9896
category = prod_cat_ref.get(filepath_list[1], ["Unknown", "Unknown"])[0]
9997
product = prod_cat_ref.get(filepath_list[1], ["Unknown", "Unknown"])[1]
10098
category_product = category + ": " + product
@@ -128,7 +126,7 @@ def prep_message(docs_to_review_by_cat):
128126
message = ":wave: Hi doc team, here are some docs to review: \n \n"
129127

130128
for key in docs_to_review_by_cat:
131-
message += "*" + key.title() + "*" + "\n"
129+
message += "*" + key + "*" + "\n"
132130
for doc in docs_to_review_by_cat[key]:
133131
message += doc + "\n"
134132
message += "\n"

0 commit comments

Comments
 (0)