(github: Octokit, commits: CardCommit[])
| 44 | // Helpers |
| 45 | |
| 46 | async function processCommitsInSeries(github: Octokit, commits: CardCommit[]) { |
| 47 | let commit: CardCommit | undefined = commits.shift(); |
| 48 | |
| 49 | while (commit) { |
| 50 | await mergeCommit(github, commit); |
| 51 | commit = commits.shift(); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | async function getCommitsFromProject(github: Octokit): Promise<CardCommit[]> { |
| 56 | const cards = await github.rest.projects.listCards({ |
no test coverage detected