Skip to content

Commit

Permalink
github: return fake PR ID in dry-run-mode for craeatePr action
Browse files Browse the repository at this point in the history
  • Loading branch information
brig committed Jan 30, 2025
1 parent 834f5b8 commit 256b102
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ private Map<String, Object> createPR(Map<String, Object> in, String gitHubUri) {

if (dryRunMode) {
log.info("Dry-run mode enabled: Skipping PR creation");
return Map.of();
return Map.of("prId", 0); // let's return some `fake` ID
}

PullRequest result = prService.createPullRequest(repo, pr);
Expand Down

0 comments on commit 256b102

Please sign in to comment.