Module:Gerrit dashboard/ReadingInfrastructure: Difference between revisions
From Bonkipedia
[[mw:]]>BDavis (WMF) (fix link to source and quote Gergő's username) |
ManfredoDo (talk | contribs) m (1 revision imported: Module Import) |
(No difference)
|
Latest revision as of 18:20, 12 November 2022
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
}