Skip to content

Commit 329e370

Browse files
authored
Merge pull request #163 from solidusio/kennyadsl/avoid-raise-changelog
Do not raise if source_code_uri is missing in the gemspec
2 parents a7543d2 + 22e1eb2 commit 329e370

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

lib/solidus_dev_support/rake_tasks.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@ def install_changelog_task
8383
config.user = repo.owner
8484
config.project = repo.name
8585
config.future_release = "v#{ENV['UNRELEASED_VERSION'] || gemspec.version}"
86+
87+
rescue Octokit::InvalidRepository
88+
warn <<~WARN
89+
It won't be possible to automatically generate the CHANGELOG for this extension because the
90+
gemspec is missing the `source_code_uri` metadata. Please add this line to the gemspec to
91+
enable automatic CHANGELOG generation:
92+
93+
s.metadata["source_code_uri"] = 'https://github.com/org/repo'
94+
95+
WARN
8696
end
8797
end
8898
end

0 commit comments

Comments
 (0)