Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Commit 89e525c

Browse files
committed
add logs
1 parent d0461b8 commit 89e525c

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

dist/preview.js

Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/preview.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function main() {
3737
const stainless = new Stainless({
3838
project: projectName,
3939
apiKey,
40-
logLevel: "warn",
40+
logLevel: "debug",
4141
});
4242

4343
startGroup("Getting parent revision");
@@ -237,11 +237,21 @@ async function computeBaseRevision({
237237
}
238238
}
239239

240+
console.log({
241+
project: projectName,
242+
revision: hashes,
243+
limit: 1,
244+
response: await stainless.builds.list({
245+
project: projectName,
246+
revision: hashes,
247+
limit: 10,
248+
}),
249+
});
240250
const configCommit = (
241251
await stainless.builds.list({
242252
project: projectName,
243253
revision: hashes,
244-
limit: 1,
254+
limit: 10,
245255
})
246256
).data[0]?.config_commit;
247257

0 commit comments

Comments
 (0)