Skip to content

Commit

Permalink
fix: put pr numbers in metadata instead of string message
Browse files Browse the repository at this point in the history
  • Loading branch information
ishowvel committed Feb 26, 2025
1 parent f6e8285 commit f5b72de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/parser/review-incentivizer-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class ReviewIncentivizerModule extends BaseModule {
return result;
}

this.context.logger.info(`Pull requests linked to this issue ${prNumbers}`);
this.context.logger.info(`Pull requests linked to this issue`, { prNumbers });

for (const username of Object.keys(result)) {
const reward = result[username];
Expand Down
4 changes: 2 additions & 2 deletions src/parser/simplification-incentivizer-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export class SimplificationIncentivizerModule extends BaseModule {
this.context.logger.warn(`No pull request is linked to this issue, won't run SimplificationIncentivizer`);
return result;
}

this.context.logger.info(`Pull requests linked to this issue ${linkedPullRequests.map((pull) => pull?.number)}`);
const prNumbers = linkedPullRequests.map((pull) => pull?.number);
this.context.logger.info("Pull requests linked to this issue", { prNumbers });

for (const pull of linkedPullRequests) {
if (!pull) continue;
Expand Down

0 comments on commit f5b72de

Please sign in to comment.