Skip to content
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

GitHubBranches: Add Get/New/Remove GitHub Repository Branch Pattern Protection Rule #313

Merged
Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
f9e8ee5
Initial commit
X-Guardian Dec 20, 2020
908c416
Updates
X-Guardian Dec 27, 2020
7698f39
Update new branch pattern and usage
X-Guardian Jan 10, 2021
c980fd7
Add tests
X-Guardian Jan 10, 2021
a9dc929
Update GitHubBranches
X-Guardian Jan 23, 2021
77c8c49
Move Invoke-GHGraphQl to separate file
X-Guardian Jan 23, 2021
5bcef0f
Remove Write-Log from New-ErrorRecord
X-Guardian Jan 23, 2021
33fe886
Update tests
X-Guardian Jan 23, 2021
3aa83dc
Fix manifest module/function order
X-Guardian Jan 24, 2021
2e62cf5
Merge branch 'master' into GitHubBranches-BranchPattern
X-Guardian Mar 6, 2021
855afe3
Apply suggestions from code review
X-Guardian Mar 22, 2021
7b4f0cf
Formatting and code review fixes
X-Guardian Mar 22, 2021
adb8af5
Fix TelemetryEventNames
X-Guardian Mar 22, 2021
c042605
Fix exception handling.
X-Guardian Mar 23, 2021
9d9bd71
Add ValidateNotNullOrEmpty to StatusChecks
X-Guardian Mar 23, 2021
a0ec66c
Fixes for code review
X-Guardian Mar 23, 2021
ff6574b
Merge branch 'master' into GitHubBranches-BranchPattern
HowardWolosky Mar 24, 2021
30e75a6
Fixes for code review
X-Guardian Mar 27, 2021
5421771
Fix usage.md
X-Guardian Mar 27, 2021
f2e85a7
Refactor Team hanmdling
X-Guardian Mar 27, 2021
2fd31e0
Refine debug/exception handling
X-Guardian Mar 27, 2021
fa9979e
Use TeamSlug for Get-GitHubRepositoryTeamPerm
X-Guardian Mar 27, 2021
c57fee3
Suppress Verbose in nested function calls
X-Guardian Mar 27, 2021
d9ac0ee
Refine messsages
X-Guardian Mar 27, 2021
1f02919
Reorder InvokeWebRequest cmds
X-Guardian Mar 27, 2021
432c104
Change GraphQL logging to debug level
X-Guardian Mar 27, 2021
c0185bd
Merge branch 'master' into GitHubBranches-BranchPattern
X-Guardian Jul 4, 2021
c9f6e51
Fix team permissions test exception
X-Guardian Jul 13, 2021
cef1077
Fix invoke-ghgraphql exception message
X-Guardian Jul 13, 2021
35a4202
Update Tests/GitHubGraphQl.Tests.ps1
HowardWolosky Jul 14, 2021
a0383f5
Update Tests/GitHubGraphQl.Tests.ps1
HowardWolosky Jul 14, 2021
65db6fb
Update Tests/GitHubGraphQl.Tests.ps1
HowardWolosky Jul 14, 2021
4edc805
Update Tests/GitHubGraphQl.Tests.ps1
HowardWolosky Jul 15, 2021
2cf39e6
Update Tests/GitHubGraphQl.Tests.ps1
HowardWolosky Jul 15, 2021
b4bda8d
Update Tests/GitHubGraphQl.Tests.ps1
HowardWolosky Jul 15, 2021
d6f8fd0
Update Tests/GitHubGraphQl.Tests.ps1
HowardWolosky Jul 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions Formatters/GitHubBranches.Format.ps1xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
<ViewDefinitions>
<!--=============== GitHub.BranchPatternProtectionRule Type View ===============-->
<View>
<Name>GitHub.BranchPatternProtectionRule</Name>
<ViewSelectedBy>
<TypeName>GitHub.BranchPatternProtectionRule</TypeName>
</ViewSelectedBy>
<ListControl>
<ListEntries>
<ListEntry>
<ListItems>
<ListItem>
<PropertyName>RepositoryUrl</PropertyName>
</ListItem>
<ListItem>
<PropertyName>pattern</PropertyName>
</ListItem>
<ListItem>
<PropertyName>requiredApprovingReviewCount</PropertyName>
</ListItem>
<ListItem>
<PropertyName>dismissesStaleReviews</PropertyName>
</ListItem>
<ListItem>
<PropertyName>requiresCodeOwnerReviews</PropertyName>
</ListItem>
<ListItem>
<PropertyName>DismissalTeams</PropertyName>
</ListItem>
<ListItem>
<PropertyName>DismissalUsers</PropertyName>
</ListItem>
<ListItem>
<PropertyName>requiresStatusChecks</PropertyName>
</ListItem>
<ListItem>
<PropertyName>requiresStrictStatusChecks</PropertyName>
</ListItem>
<ListItem>
<PropertyName>requiredStatusCheckContexts</PropertyName>
</ListItem>
<ListItem>
<PropertyName>requiresCommitSignatures</PropertyName>
</ListItem>
<ListItem>
<PropertyName>requiresLinearHistory</PropertyName>
</ListItem>
<ListItem>
<PropertyName>isAdminEnforced</PropertyName>
</ListItem>
<ListItem>
<PropertyName>RestrictPushApps</PropertyName>
</ListItem>
<ListItem>
<PropertyName>RestrictPushTeams</PropertyName>
</ListItem>
<ListItem>
<PropertyName>RestrictPushUsers</PropertyName>
</ListItem>
<ListItem>
<PropertyName>allowsForcePushes</PropertyName>
</ListItem>
<ListItem>
<PropertyName>allowsDeletions</PropertyName>
</ListItem>
</ListItems>
</ListEntry>
</ListEntries>
</ListControl>
</View>
</ViewDefinitions>
</Configuration>
Loading