ts-ci/src/tools/test/octokit-addons/listCommit.ts

21 lines
No EOL
512 B
TypeScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { listCommitFactory } from "../../octokit-addons/listCommit";
import { createOctokit } from "../../createOctokit";
(async ()=>{
const octokit = createOctokit({ "github_token": "" });
const { listCommit } = listCommitFactory({ octokit });
const commits= await listCommit({
"owner": "garronej",
"repo": "supreme_tribble",
"branch": "dev",
"sha": "84792f5719d0812e6917051b5c6331891187ca20"
});
console.log(JSON.stringify(commits, null, 2));
})();