(
key: IntegrationTaskKey,
params: {
owner: string;
repo: string;
message: string;
tree: string;
parents?: string[];
author?: AuthorContent;
committer?: CommitterContent;
signature?: string;
}
)
| 99 | } |
| 100 | |
| 101 | createCommit( |
| 102 | key: IntegrationTaskKey, |
| 103 | params: { |
| 104 | owner: string; |
| 105 | repo: string; |
| 106 | message: string; |
| 107 | tree: string; |
| 108 | parents?: string[]; |
| 109 | author?: AuthorContent; |
| 110 | committer?: CommitterContent; |
| 111 | signature?: string; |
| 112 | } |
| 113 | ): GitHubReturnType<Octokit["rest"]["git"]["createCommit"]> { |
| 114 | return this.runTask( |
| 115 | key, |
| 116 | async (client, task) => { |
| 117 | const result = await client.rest.git.createCommit({ |
| 118 | ...params, |
| 119 | }); |
| 120 | return result.data; |
| 121 | }, |
| 122 | { |
| 123 | name: "Create Commit", |
| 124 | params, |
| 125 | properties: [ |
| 126 | ...repoProperties(params), |
| 127 | { |
| 128 | label: "Message", |
| 129 | text: params.message, |
| 130 | }, |
| 131 | { |
| 132 | label: "Tree", |
| 133 | text: params.tree, |
| 134 | }, |
| 135 | ], |
| 136 | }, |
| 137 | onError |
| 138 | ); |
| 139 | } |
| 140 | |
| 141 | getCommit( |
| 142 | key: IntegrationTaskKey, |
nothing calls this directly
no test coverage detected