refact github code tree fragment