Skip to content

Commit fbeb690

Browse files
authored
fix: pass repository info to logger context (#22)
1 parent 309a72c commit fbeb690

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ export async function octoherd(
9898
);
9999

100100
try {
101+
const { id, owner, name } = repository
102+
octokit.log.setContext({ repository: { id, owner, name } })
101103
await octoherdScript(octokit, repository, userOptions);
102104
} catch (error) {
103105
if (!error.cancel) throw error;

0 commit comments

Comments
 (0)