Lines Matching +full:pull +full:- +full:requests
7 Monday at 0200 CE(S)T to the typing-sig mailing list. Due to limitation
18 import requests
24 RECEIVER_EMAIL = "typing-sig@python.org"
37 def main() -> None:
44 def previous_week_start() -> datetime.date:
46 return today - datetime.timedelta(days=today.weekday() + 7)
49 def fetch_issues(since: datetime.date) -> list[Issue]:
51 j = requests.get(
55 "since": f"{since:%Y-%m-%d}T00:00:00Z",
65 def parse_issue(j: Any) -> Issue:
69 created_at = datetime.datetime.fromisoformat(j["created_at"][:-1])
81 ) -> tuple[list[Issue], list[Issue]]:
96 ) -> None:
99 print(f"Subject: Opened and changed typing issues week {since:%G-W%V}")
104 def generate_mail(new: Sequence[Issue], changed: Sequence[Issue]) -> str:
107 "No issues or pull requests with the label 'topic: feature' were opened\n"
112 "The following is an overview of all issues and pull requests in the\n"
115 "---------------------------------------------------\n\n"
118 s += "The following issues and pull requests were opened last week: \n\n"
120 s += "\n---------------------------------------------------\n\n"
122 s += "The following issues and pull requests were updated last week: \n\n"
124 s += "\n---------------------------------------------------\n\n"
126 "All issues and pull requests with the label 'topic: feature'\n"
133 def generate_issue_text(issue: Issue) -> str: