Skip to content

Commit 619dc96

Browse files
fix update env keys
1 parent 2353c0b commit 619dc96

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

src/bob_dev/cli.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -317,19 +317,22 @@ def _run_configure() -> None:
317317
jira_url = input("JIRA_URL (e.g. https://your-org.atlassian.net): ").strip()
318318
jira_email = input("JIRA_EMAIL (your Atlassian account e-mail) : ").strip()
319319
jira_token = input("JIRA_API_TOKEN (Atlassian API token) : ").strip()
320+
for key, val in [
321+
("JIRA_URL", jira_url),
322+
("JIRA_EMAIL", jira_email),
323+
("JIRA_API_TOKEN", jira_token),
324+
]:
325+
update_env_file(key, val, env_path)
320326
if task_manager == "GITLAB":
321327
# GitLab credentials.
322328
print("\nGitLab configuration:")
323329
gitlab_url = input("GITLAB_URL (e.g. https://gitlab.com) : ").strip()
324330
gitlab_token = input("GITLAB_API_TOKEN (GitLab API token) : ").strip()
325-
for key, val in [
326-
("JIRA_URL", jira_url),
327-
("JIRA_EMAIL", jira_email),
328-
("JIRA_API_TOKEN", jira_token),
329-
("GITLAB_URL", gitlab_url),
330-
("GITLAB_API_TOKEN", gitlab_token),
331-
]:
332-
update_env_file(key, val, env_path)
331+
for key, val in [
332+
("GITLAB_URL", gitlab_url),
333+
("GITLAB_API_TOKEN", gitlab_token),
334+
]:
335+
update_env_file(key, val, env_path)
333336

334337
print_success(f"{task_manager} configuration saved.")
335338

0 commit comments

Comments
 (0)