Formatters/GitHubRepositories.Format.ps1xml

<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
  <ViewDefinitions>
    <!--================== GitHub.Repository Type View =================-->
    <View>
      <Name>GitHub.Repository</Name>
      <ViewSelectedBy>
        <TypeName>GitHub.Repository</TypeName>
      </ViewSelectedBy>
      <TableControl>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <PropertyName>full_name</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>visibility</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>description</PropertyName>
              </TableColumnItem>
            </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>
    </View>
    <!--=============== GitHub.RepositoryTopic Type View ===============-->
    <View>
      <Name>GitHub.RepositoryTopic</Name>
      <ViewSelectedBy>
        <TypeName>GitHub.RepositoryTopic</TypeName>
      </ViewSelectedBy>
      <ListControl>
        <ListEntries>
          <ListEntry>
            <ListItems>
              <ListItem>
                <PropertyName>names</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>RepositoryUrl</PropertyName>
              </ListItem>
            </ListItems>
          </ListEntry>
        </ListEntries>
      </ListControl>
    </View>
    <!--=============== GitHub.RepositoryContributor Type View ===============-->
    <View>
      <Name>GitHub.RepositoryContributor</Name>
      <ViewSelectedBy>
        <TypeName>GitHub.RepositoryContributor</TypeName>
      </ViewSelectedBy>
      <TableControl>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <PropertyName>UserName</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>type</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>contributions</PropertyName>
              </TableColumnItem>
            </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>
    </View>
    <!--========== GitHub.RepositoryContributorStatistics Type View ==========-->
    <View>
      <Name>GitHub.RepositoryContributorStatistics</Name>
      <ViewSelectedBy>
        <TypeName>GitHub.RepositoryContributorStatistics</TypeName>
      </ViewSelectedBy>
      <TableControl>
        <TableHeaders>
          <TableColumnHeader>
            <Label>author.UserName</Label>
          </TableColumnHeader>
          <TableColumnHeader />
          <TableColumnHeader />
        </TableHeaders>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <ScriptBlock>
                  $_.author.UserName
                </ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>total</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>weeks</PropertyName>
              </TableColumnItem>
            </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>
    </View>
    <!--=============== GitHub.RepositoryCollaborator Type View ===============-->
    <View>
      <Name>GitHub.RepositoryCollaborator</Name>
      <ViewSelectedBy>
        <TypeName>GitHub.RepositoryCollaborator</TypeName>
      </ViewSelectedBy>
      <TableControl>
        <TableHeaders>
          <TableColumnHeader />
          <TableColumnHeader>
            <Label>permissions.admin</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>permissions.push</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>permissions.pull</Label>
          </TableColumnHeader>
        </TableHeaders>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <PropertyName>UserName</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>
                  $_.permissions.admin
                </ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>
                  $_.permissions.push
                </ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>
                  $_.permissions.pull
                </ScriptBlock>
              </TableColumnItem>
            </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>
    </View>
    <!--=============== GitHub.RepositoryTag Type View ===============-->
    <View>
      <Name>GitHub.RepositoryTag</Name>
      <ViewSelectedBy>
        <TypeName>GitHub.RepositoryTag</TypeName>
      </ViewSelectedBy>
      <TableControl>
        <TableHeaders>
          <TableColumnHeader />
          <TableColumnHeader>
            <Label>commit.sha</Label>
          </TableColumnHeader>
        </TableHeaders>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <PropertyName>name</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>
                  $_.commit.sha
                </ScriptBlock>
              </TableColumnItem>
            </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>
    </View>
    <!--=============== GitHub.RepositoryActionsPermission Type View ===============-->
    <View>
      <Name>GitHub.RepositoryActionsPermission</Name>
      <ViewSelectedBy>
        <TypeName>GitHub.RepositoryActionsPermission</TypeName>
      </ViewSelectedBy>
      <ListControl>
        <ListEntries>
          <ListEntry>
            <ListItems>
              <ListItem>
                <PropertyName>RepositoryName</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>RepositoryUrl</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>Enabled</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>AllowedActions</PropertyName>
              </ListItem>
            </ListItems>
          </ListEntry>
        </ListEntries>
      </ListControl>
    </View>
    <!--=============== GitHub.RepositoryTeamPermission Type View ===============-->
    <View>
      <Name>GitHub.RepositoryTeamPermission</Name>
      <ViewSelectedBy>
        <TypeName>GitHub.RepositoryTeamPermission</TypeName>
      </ViewSelectedBy>
      <TableControl>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <PropertyName>RepositoryName</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>TeamName</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>Permission</PropertyName>
              </TableColumnItem>
            </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>
    </View>
  </ViewDefinitions>
</Configuration>