mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
add logs
This commit is contained in:
parent
efe9b73716
commit
6c824d7c3c
3 changed files with 22 additions and 2 deletions
20
src/test/getCommitAhead.ts
Normal file
20
src/test/getCommitAhead.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { createOctokit } from "../tools/createOctokit";
|
||||
import { getCommitAheadFactory } from "../tools/octokit-addons/getCommitAhead";
|
||||
|
||||
(async ()=>{
|
||||
|
||||
const octokit = createOctokit({ "github_token": "" });
|
||||
|
||||
const { getCommitAhead } = getCommitAheadFactory({ octokit });
|
||||
|
||||
const { commits } = await getCommitAhead({
|
||||
"owner": "InseeFrLab",
|
||||
"repo": "keycloakify",
|
||||
"branchBehind": "v4.5.1",
|
||||
"branchAhead": "Ann2827/pull"
|
||||
}).catch(() => ({ "commits": undefined }));
|
||||
|
||||
console.log(commits);
|
||||
|
||||
|
||||
})()
|
||||
Loading…
Add table
Add a link
Reference in a new issue