(
message: string,
treeSha: string,
parents: string[],
author?: GitHubAuthor,
committer?: GitHubCommitter,
)
| 1505 | } |
| 1506 | |
| 1507 | async createCommit( |
| 1508 | message: string, |
| 1509 | treeSha: string, |
| 1510 | parents: string[], |
| 1511 | author?: GitHubAuthor, |
| 1512 | committer?: GitHubCommitter, |
| 1513 | ) { |
| 1514 | const result: Endpoints['POST /repos/{owner}/{repo}/git/commits']['response']['data'] = |
| 1515 | await this.request(`${this.repoURL}/git/commits`, { |
| 1516 | method: 'POST', |
| 1517 | body: JSON.stringify({ message, tree: treeSha, parents, author, committer }), |
| 1518 | }); |
| 1519 | return result; |
| 1520 | } |
| 1521 | |
| 1522 | async getUnpublishedEntrySha(collection: string, slug: string) { |
| 1523 | const contentKey = this.generateContentKey(collection, slug); |
no test coverage detected