Skip to content

Commit c360100

Browse files
authored
github: return fake PR ID in dry-run-mode for craeatePr action (#186)
1 parent 834f5b8 commit c360100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/git/src/main/java/com/walmartlabs/concord/plugins/git/GitHubTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ private Map<String, Object> createPR(Map<String, Object> in, String gitHubUri) {
226226

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

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

0 commit comments

Comments
 (0)