Skip to content

Commit

Permalink
Change review format
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Aug 15, 2024
1 parent e728f5b commit 54b5518
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/review_pull_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ def main():
diff = (most_recent_rows - second_most_recent_rows)
# Convert to df
diff = diff.reset_index()
diff = diff[diff.Variable == "household_net_income"].T
diff.Total = diff.Total.apply(lambda x: f"{x:+.1f}")
diff = diff[diff.Variable == "household_net_income"].set_index("Time period")[["Total"]].T
table = diff.to_markdown(index=False)

review_text = f"""## National projection changes\n\nThis pull request makes the following changes to economic estimates.\n\n{table}"""
review_text = f"""## National projection changes\n\nThis pull request makes the following changes to economic estimates.\n\n### Household net income\n\n{table}"""

print(review_text)

set_pr_auto_review_comment(review_text)
#set_pr_auto_review_comment(review_text)

if __name__ == "__main__":
main()

0 comments on commit 54b5518

Please sign in to comment.