Return the repo-relative path for a gist file: social/news/gists/YYYY-MM-DD/PR-{n}.json
(pr_number: int, merged_at: str)
| 576 | return ai_tier |
| 577 | |
| 578 | def gist_path_for_pr(pr_number: int, merged_at: str) -> str: |
| 579 | """Return the repo-relative path for a gist file: social/news/gists/YYYY-MM-DD/PR-{n}.json""" |
| 580 | date_str = merged_at[:10] # YYYY-MM-DD from ISO timestamp |
| 581 | return f"{GISTS_REL_DIR}/{date_str}/PR-{pr_number}.json" |
| 582 | |
| 583 | |
| 584 | def commit_gist(gist: Dict, github_token: str, owner: str, repo: str) -> bool: |
no outgoing calls
no test coverage detected