mirror of
https://github.com/garronej/ts-ci.git
synced 2025-12-01 05:43:06 +00:00
28 lines
608 B
TypeScript
28 lines
608 B
TypeScript
|
||
import { getCommitAsyncIterableFactory } from "../../octokit-addons/getCommitAsyncIterable";
|
||
import { createOctokit } from "../../createOctokit";
|
||
|
||
|
||
(async function () {
|
||
|
||
const octokit = createOctokit({ "github_token": "" });
|
||
|
||
const { getCommitAsyncIterable } = getCommitAsyncIterableFactory({ octokit });
|
||
|
||
const commitAsyncIterable = getCommitAsyncIterable({
|
||
"owner": "garronej",
|
||
"repo": "test-repo",
|
||
"branch": "master"
|
||
});
|
||
|
||
for await (const commit of commitAsyncIterable) {
|
||
console.log(commit.commit.message);
|
||
}
|
||
|
||
console.log("done");
|
||
|
||
})();
|
||
|
||
|
||
|
||
|