Skip to content

GitHubRepositories: Add Output Type Views #205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jun 27, 2020
181 changes: 181 additions & 0 deletions Formatters/GitHubRepositories.Format.ps1xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
<?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>
</ViewDefinitions>
</Configuration>
Loading