This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/attic.git
The following commit(s) were added to refs/heads/main by this push:
new 0c151b4 Bugzilla needs a key definition - cannot derive BZ ID from
project id
0c151b4 is described below
commit 0c151b41629e710d4154714386e2d027e037d533
Author: Sebb <[email protected]>
AuthorDate: Sat Oct 4 21:35:33 2025 +0100
Bugzilla needs a key definition - cannot derive BZ ID from project id
---
_plugins/project-data-plugin.rb | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/_plugins/project-data-plugin.rb b/_plugins/project-data-plugin.rb
index 1b375a5..105fd26 100644
--- a/_plugins/project-data-plugin.rb
+++ b/_plugins/project-data-plugin.rb
@@ -80,10 +80,14 @@ module ProjectDataPlugin
unless tracker.include? 'keys'
tracker['keys'] = [projectId.upcase]
end
- elsif %w{GitHub Bugzilla}.include? tracker['type']
+ elsif tracker['type'] == 'GitHub'
unless tracker.include? 'keys'
tracker['keys'] = [projectId]
end
+ elsif tracker['type'] == 'Bugzilla'
+ unless tracker.include? 'keys'
+ raise Exception.new "Bugzilla key must be provided"
+ end
else
puts "Unexpected tracker #{tracker}"
end
@@ -102,7 +106,7 @@ module ProjectDataPlugin
File.write(File.join(site.dest, 'projects.json'),
JSON.pretty_generate(site.data['projects'].sort.to_h))
site.data['project_array'] = projects.sort_by { |project|
project['project_name_lower'] }
-
+
## Initialize Array of years from 2009 onwards
current_year = Time.new.year
years = Array.new