Open main menu

Module:Gerrit dashboard/ReadingInfrastructure

< Module:Gerrit dashboard
Documentation icon Module documentation[create]
-- Gerrit open code review dashboard for the Reading Infrastructure team
-- Displays all open code reviews filed by team members
-- Usage: {{#invoke:Gerrit dashboard/ReadingInfrastructure|link}}

local dashboard = require( 'Module:Gerrit dashboard' )
local link_to_dashboard = dashboard._link_to_dashboard

local team_members = {}
local dashboard_def = {}

local add_team_member = function ( member, name )
	table.insert( dashboard_def, { member, {
		{ 'status', 'open' },
		{ 'owner', name }
	} } )
	
	table.insert( team_members, { member, name } )
end

add_team_member( 'Bryan Davis', 'BryanDavis' )
add_team_member( 'Brad Jorsch', 'Anomie' )
add_team_member( 'Gergő Tisza', '"Gergő Tisza"' )

return {
	link = function ( frame )
		return link_to_dashboard( dashboard_def, 'Reading Infrastructure', 'Reading Infrastructure dashboard on Gerrit' ) .. ' <sup>[[Module:Gerrit dashboard/ReadingInfrastructure|(source)]]</sup>'
	end
}