Module:Gerrit dashboard/ReadingInfrastructure: Difference between revisions
From Guild of Archivists
(fix link to source and quote Gergő's username) |
m (1 revision imported) |
Latest revision as of 07:26, 30 October 2015
Documentation for this module may be created at Module:Gerrit dashboard/ReadingInfrastructure/doc
-- 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
}