diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ba7c3c..a1595b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ ## [Unreleased] +## [0.3.0] - 2023-09-18 + +- Only return unique sitemaps. + +## [0.2.0] - 2023-09-10 + +- Correctly handle multiple sitemaps + tests. ## [0.1.0] - 2023-09-09 - Initial release diff --git a/lib/probot.rb b/lib/probot.rb index e1002e3..d4535af 100644 --- a/lib/probot.rb +++ b/lib/probot.rb @@ -108,6 +108,7 @@ class Probot sitemap_uri = URI(data.value) sitemap_uri = sitemap_uri.host.nil? ? URI.join(*[site, sitemap_uri].compact) : sitemap_uri @sitemaps << sitemap_uri.to_s + @sitemaps.uniq! next end