Skip to content

Commit

Permalink
Fix changelog generation when there are commits without PRs (#73)
Browse files Browse the repository at this point in the history
* Fix changelog generation when there are commits without PRs

* Fix test
  • Loading branch information
tonidero authored Dec 12, 2024
1 parent 3b1e7cf commit 4ee8579
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ def self.auto_generate_changelog(repo_name, github_token, rate_limit_sleep, incl
UI.important("Cannot find pull request associated to #{sha}. Using commit information and adding it to the Other section")
message = commit["commit"]["message"]
name = commit["commit"]["author"]["name"]
username = commit["author"]["login"]
line = "* #{message} via #{name} (@#{username})"
line = "* #{message} via #{name}"
changelog_sections[:other].push(line)
else
UI.user_error!("Cannot generate changelog. Multiple commits found for #{sha}")
Expand Down
2 changes: 1 addition & 1 deletion spec/helper/versioning_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@
nil
)
expect(changelog).to eq("### 🔄 Other Changes\n" \
"* Updating great support link via Miguel José Carranza Guisado (@MiguelCarranza)")
"* Updating great support link via Miguel José Carranza Guisado")
end

def mock_native_releases
Expand Down

0 comments on commit 4ee8579

Please sign in to comment.