Skip to content

Commit

Permalink
updating config
Browse files Browse the repository at this point in the history
  • Loading branch information
patel-bhavin committed Oct 21, 2024
1 parent f7204a1 commit cc84524
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contentctl/actions/release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def release_notes(self, config:release_notes) -> None:
raise ValueError(f"latest branch {config.latest_branch} does not exist in the repository. Make sure your branch name is correct")
if config.compare_against not in repo.branches:
raise ValueError(f"compare_against branch {config.compare_against} does not exist in the repository. Make sure your branch name is correct")

commit1 = repo.commit(config.latest_branch)
commit2 = repo.commit(config.compare_against)
diff_index = commit2.diff(commit1)
Expand Down Expand Up @@ -190,7 +191,7 @@ def release_notes(self, config:release_notes) -> None:

if config.latest_branch:
print(f"Generating release notes - \033[92m{config.latest_branch}\033[0m")
print(f"Compared against - \033[92m{compare_against}\033[0m")
print(f"Compared against - \033[92m{config.compare_against}\033[0m")
print("\n## Release notes for ESCU " + config.latest_branch)

notes = [self.create_notes(config.path, stories_added, header="New Analytic Story"),
Expand Down

0 comments on commit cc84524

Please sign in to comment.