(createdDate)
| 13 | |
| 14 | # %% |
| 15 | def getRuns(createdDate): |
| 16 | runsResponse = requests.get( |
| 17 | "https://api.github.com/repos/deepnote/vscode-deepnote/actions/workflows/ci.yml/runs", |
| 18 | params={"created": createdDate, "branch": "main"}, |
| 19 | headers={ |
| 20 | "Accept": "application/vnd.github+json", |
| 21 | "Authorization": f"Bearer {authtoken}", |
| 22 | }, |
| 23 | ) |
| 24 | |
| 25 | if runsResponse.status_code != 200: |
| 26 | print(f"Error {runsResponse.status_code}") |
| 27 | raise Exception("Error getting runs") |
| 28 | |
| 29 | runs = runsResponse.json()["workflow_runs"] |
| 30 | |
| 31 | for run in runs: |
| 32 | print(f"Found run {run['id']} for event '{run['event']}'") |
| 33 | |
| 34 | return runs |
| 35 | |
| 36 | |
| 37 | def getArtifactData(id): |
no test coverage detected