mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
21 lines
No EOL
512 B
TypeScript
21 lines
No EOL
512 B
TypeScript
|
||
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));
|
||
|
||
})(); |