Skip to content

Commit

Permalink
jira: return fake IDs in dry-run-mode for craeateIssue and createCo…
Browse files Browse the repository at this point in the history
…mponent actions (#188)
  • Loading branch information
brig authored Feb 10, 2025
1 parent 20c1f65 commit 587fc3b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Map<String, Object> createIssue(CreateIssueParams in) {

if (dryRunMode) {
log.info("Dry-run mode enabled: Skipping creation of a new issue in '{}'", projectKey);
return Map.of();
return Map.of(JIRA_ISSUE_ID_KEY, "FAKE-000");
}

log.info("Creating new issue in '{}'...", projectKey);
Expand Down Expand Up @@ -206,7 +206,7 @@ Map<String, Object> createComponent(CreateComponentParams in) {

if (dryRunMode) {
log.info("Dry-run mode enabled: Skipping creation of component '{}'", componentName);
return Map.of();
return Map.of(JIRA_COMPONENT_ID_KEY, "FAKE-COMPONENT-000");
}

try {
Expand Down

0 comments on commit 587fc3b

Please sign in to comment.