(payload: dict[str, str])
| 221 | """ |
| 222 | |
| 223 | def post_message(payload: dict[str, str]): |
| 224 | return requests.post( |
| 225 | "https://slack.com/api/chat.postMessage", |
| 226 | headers={ |
| 227 | "Authorization": f"Bearer {os.environ.get('SLACK_TOKEN', '')}", |
| 228 | "Content-Type": "application/json; charset=utf-8", |
| 229 | }, |
| 230 | json=payload, |
| 231 | ) |
| 232 | |
| 233 | # Create the parent message |
| 234 | parent_thread_msg = f"{len(issues)} new GitHub comment(s) since {hours_passed} hour(s) ago" |
no test coverage detected