RepoAuditor 0.4.0__tar.gz → 0.4.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. {repoauditor-0.4.0 → repoauditor-0.4.1}/PKG-INFO +1 -1
  2. {repoauditor-0.4.0 → repoauditor-0.4.1}/docs/DEVELOPMENT.md +1 -1
  3. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/RulesetQuery.py +3 -3
  4. repoauditor-0.4.0/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/AllowMainlineForcePushes.py → repoauditor-0.4.1/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/BlockMainlineForcePushes.py +7 -7
  5. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/__init__.py +1 -1
  6. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubEnterprise_EndToEndTest.py +3 -3
  7. repoauditor-0.4.0/tests/Plugins/GitHubModule/RulesetRequirements/AllowMainlineForcePushesRule_UnitTest.py → repoauditor-0.4.1/tests/Plugins/GitHubModule/RulesetRequirements/BlockMainlineForcePushesRule_UnitTest.py +7 -7
  8. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/RulesetRequirements/RequireUpToDateBranchesRule_UnitTest.py +1 -1
  9. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHub_EndToEndTest.py +3 -3
  10. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/__snapshots__/GitHubEnterprise_EndToEndTest.ambr +32 -32
  11. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/__snapshots__/GitHub_EndToEndTest.ambr +44 -44
  12. {repoauditor-0.4.0 → repoauditor-0.4.1}/.copier-answers.yml +0 -0
  13. {repoauditor-0.4.0 → repoauditor-0.4.1}/.github/CODEOWNERS +0 -0
  14. {repoauditor-0.4.0 → repoauditor-0.4.1}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  15. {repoauditor-0.4.0 → repoauditor-0.4.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  16. {repoauditor-0.4.0 → repoauditor-0.4.1}/.github/ISSUE_TEMPLATE/custom.md +0 -0
  17. {repoauditor-0.4.0 → repoauditor-0.4.1}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  18. {repoauditor-0.4.0 → repoauditor-0.4.1}/.github/actions/release_impl/action.yml +0 -0
  19. {repoauditor-0.4.0 → repoauditor-0.4.1}/.github/pull_request_template.md +0 -0
  20. {repoauditor-0.4.0 → repoauditor-0.4.1}/.github/release_sources.yaml +0 -0
  21. {repoauditor-0.4.0 → repoauditor-0.4.1}/.github/workflows/CICD.yml +0 -0
  22. {repoauditor-0.4.0 → repoauditor-0.4.1}/.github/workflows/CICD_impl.yml +0 -0
  23. {repoauditor-0.4.0 → repoauditor-0.4.1}/.github/workflows/EndToEnd.yml +0 -0
  24. {repoauditor-0.4.0 → repoauditor-0.4.1}/.github/workflows/codeql.yml +0 -0
  25. {repoauditor-0.4.0 → repoauditor-0.4.1}/.gitignore +0 -0
  26. {repoauditor-0.4.0 → repoauditor-0.4.1}/.pre-commit-config.yaml +0 -0
  27. {repoauditor-0.4.0 → repoauditor-0.4.1}/.python-version +0 -0
  28. {repoauditor-0.4.0 → repoauditor-0.4.1}/CODE_OF_CONDUCT.md +0 -0
  29. {repoauditor-0.4.0 → repoauditor-0.4.1}/GOVERNANCE.md +0 -0
  30. {repoauditor-0.4.0 → repoauditor-0.4.1}/LICENSE +0 -0
  31. {repoauditor-0.4.0 → repoauditor-0.4.1}/MAINTAINERS.md +0 -0
  32. {repoauditor-0.4.0 → repoauditor-0.4.1}/README.md +0 -0
  33. {repoauditor-0.4.0 → repoauditor-0.4.1}/SECURITY.md +0 -0
  34. {repoauditor-0.4.0 → repoauditor-0.4.1}/default_config.yaml +0 -0
  35. {repoauditor-0.4.0 → repoauditor-0.4.1}/docs/CONTRIBUTING.md +0 -0
  36. {repoauditor-0.4.0 → repoauditor-0.4.1}/docs/PAT.md +0 -0
  37. {repoauditor-0.4.0 → repoauditor-0.4.1}/docs/config_file.md +0 -0
  38. {repoauditor-0.4.0 → repoauditor-0.4.1}/docs/index.md +0 -0
  39. {repoauditor-0.4.0 → repoauditor-0.4.1}/docs/troubleshooting.md +0 -0
  40. {repoauditor-0.4.0 → repoauditor-0.4.1}/docs/usage.md +0 -0
  41. {repoauditor-0.4.0 → repoauditor-0.4.1}/minisign_key.pub +0 -0
  42. {repoauditor-0.4.0 → repoauditor-0.4.1}/mkdocs.yml +0 -0
  43. {repoauditor-0.4.0 → repoauditor-0.4.1}/pyproject.toml +0 -0
  44. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/AutoGitSemVer.yaml +0 -0
  45. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/CommandLineProcessor.py +0 -0
  46. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Display.py +0 -0
  47. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/EntryPoint.py +0 -0
  48. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/ExecuteModules.py +0 -0
  49. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Impl/ParallelSequentialProcessor.py +0 -0
  50. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Impl/__init__.py +0 -0
  51. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Module.py +0 -0
  52. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugin.py +0 -0
  53. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/CommunityStandards/CommunityStandardsQuery.py +0 -0
  54. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/CommunityStandards/Impl/ExistsRequirementImpl.py +0 -0
  55. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/CommunityStandards/Impl/__init__.py +0 -0
  56. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/CommunityStandards/Module.py +0 -0
  57. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/CommunityStandards/Requirements/CodeOfConduct.py +0 -0
  58. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/CommunityStandards/Requirements/CodeOwners.py +0 -0
  59. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/CommunityStandards/Requirements/Contributing.py +0 -0
  60. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/CommunityStandards/Requirements/IssueTemplates.py +0 -0
  61. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/CommunityStandards/Requirements/LicenseFile.py +0 -0
  62. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/CommunityStandards/Requirements/PullRequestTemplates.py +0 -0
  63. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/CommunityStandards/Requirements/ReadMe.py +0 -0
  64. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/CommunityStandards/Requirements/SecurityPolicy.py +0 -0
  65. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/CommunityStandards/Requirements/__init__.py +0 -0
  66. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/CommunityStandards/__init__.py +0 -0
  67. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/CommunityStandardsPlugin.py +0 -0
  68. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionQuery.py +0 -0
  69. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/AllowDeletions.py +0 -0
  70. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/AllowMainlineForcePushes.py +0 -0
  71. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/DismissStalePullRequestApprovals.py +0 -0
  72. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/DoNotAllowBypassSettings.py +0 -0
  73. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/EnsureStatusChecks.py +0 -0
  74. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/ClassicEnableRequirementImpl.py +0 -0
  75. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/ClassicValueRequirementImpl.py +0 -0
  76. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/__init__.py +0 -0
  77. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireApprovalMostRecentPush.py +0 -0
  78. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireApprovals.py +0 -0
  79. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireCodeOwnerReview.py +0 -0
  80. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireConversationResolution.py +0 -0
  81. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireLinearHistory.py +0 -0
  82. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequirePullRequests.py +0 -0
  83. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireSignedCommits.py +0 -0
  84. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireStatusChecksToPass.py +0 -0
  85. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireUpToDateBranches.py +0 -0
  86. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/__init__.py +0 -0
  87. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQuery.py +0 -0
  88. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/DefaultBranchRequirements/Protected.py +0 -0
  89. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/DefaultBranchRequirements/__init__.py +0 -0
  90. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/Impl/Common.py +0 -0
  91. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/Impl/EnableRequirementImpl.py +0 -0
  92. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/Impl/EnableRulesetRequirementImpl.py +0 -0
  93. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/Impl/ValueRequirementImpl.py +0 -0
  94. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/Impl/__init__.py +0 -0
  95. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/Module.py +0 -0
  96. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/DismissStalePullRequestApprovals.py +0 -0
  97. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/EnsureStatusChecks.py +0 -0
  98. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RequireApprovalMostRecentPush.py +0 -0
  99. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RequireApprovals.py +0 -0
  100. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RequireCodeOwnerReview.py +0 -0
  101. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RequireCodeScanningResults.py +0 -0
  102. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RequireConversationResolution.py +0 -0
  103. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RequireLinearHistory.py +0 -0
  104. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RequirePullRequests.py +0 -0
  105. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RequireSignedCommits.py +0 -0
  106. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RequireStatusChecksToPass.py +0 -0
  107. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RequireSuccessfulDeployments.py +0 -0
  108. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RequireUpToDateBranches.py +0 -0
  109. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RestrictCreations.py +0 -0
  110. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RestrictDeletions.py +0 -0
  111. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RestrictUpdates.py +0 -0
  112. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/__init__.py +0 -0
  113. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardQuery.py +0 -0
  114. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/AutoMerge.py +0 -0
  115. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/DefaultBranch.py +0 -0
  116. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/DeleteHeadBranches.py +0 -0
  117. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/DependabotSecurityUpdates.py +0 -0
  118. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/Description.py +0 -0
  119. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/Impl/StandardEnableRequirementImpl.py +0 -0
  120. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/Impl/StandardValueRequirementImpl.py +0 -0
  121. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/Impl/__init__.py +0 -0
  122. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/License.py +0 -0
  123. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/MergeCommit.py +0 -0
  124. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/MergeCommitMessage.py +0 -0
  125. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/Private.py +0 -0
  126. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/RebaseMergeCommit.py +0 -0
  127. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/SecretScanning.py +0 -0
  128. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/SecretScanningPushProtection.py +0 -0
  129. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/SquashCommitMerge.py +0 -0
  130. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/SquashMergeCommitMessage.py +0 -0
  131. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/SuggestUpdatingPullRequestBranches.py +0 -0
  132. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/SupportDiscussions.py +0 -0
  133. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/SupportIssues.py +0 -0
  134. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/SupportProjects.py +0 -0
  135. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/SupportWikis.py +0 -0
  136. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/TemplateRepository.py +0 -0
  137. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/WebCommitSignoff.py +0 -0
  138. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/__init__.py +0 -0
  139. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHub/__init__.py +0 -0
  140. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHubBase/Module.py +0 -0
  141. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHubBase/__init__.py +0 -0
  142. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/GitHubPlugin.py +0 -0
  143. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/ScientificSoftware/Module.py +0 -0
  144. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/ScientificSoftware/Requirements/Citation.py +0 -0
  145. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/ScientificSoftware/Requirements/__init__.py +0 -0
  146. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/ScientificSoftware/ScientificSoftwareQuery.py +0 -0
  147. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/ScientificSoftware/__init__.py +0 -0
  148. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/ScientificSoftwarePlugin.py +0 -0
  149. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Plugins/__init__.py +0 -0
  150. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Query.py +0 -0
  151. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/Requirement.py +0 -0
  152. {repoauditor-0.4.0 → repoauditor-0.4.1}/src/RepoAuditor/py.typed +0 -0
  153. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/CommandLineProcessor_UnitTest.py +0 -0
  154. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/EntryPoint_UnitTest.py +0 -0
  155. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/ExecuteModules_UnitTest.py +0 -0
  156. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Module_UnitTest.py +0 -0
  157. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugin_UnitTest.py +0 -0
  158. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/CommunityStandards/CommunityStandardsQuery_UnitTest.py +0 -0
  159. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/CommunityStandards/CommunityStandards_UnitTest.py +0 -0
  160. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/CommunityStandards/ExistsRequirementImpl_UnitTest.py +0 -0
  161. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/CommunityStandards_EndToEndTest.py +0 -0
  162. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/ClassicBranchProtectionQuery_UnitTest.py +0 -0
  163. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/ClassicBranchProtectionRequirements/DismissStalePullRequestApprovals_UnitTest.py +0 -0
  164. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/ClassicBranchProtectionRequirements/EnsureStatusChecks_UnitTest.py +0 -0
  165. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/ClassicBranchProtectionRequirements/RequireApprovalMostRecentPush_UnitTest.py +0 -0
  166. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/ClassicBranchProtectionRequirements/RequireApprovals_UnitTest.py +0 -0
  167. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/ClassicBranchProtectionRequirements/RequireCodeOwnerReview_UnitTest.py +0 -0
  168. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/ClassicBranchProtectionRequirements/RequireUpToDateBranches_UnitTest.py +0 -0
  169. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/ClassicValueRequirementImpl_UnitTest.py +0 -0
  170. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/DefaultBranchQuery_UnitTest.py +0 -0
  171. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/DefaultBranchRequirements/Protected_UnitTest.py +0 -0
  172. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/EnableRulesetRequirementImpl_UnitTest.py +0 -0
  173. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/GitHubModule_UnitTest.py +0 -0
  174. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/GitHubSession_UnitTest.py +0 -0
  175. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/RulesetRequirements/DismissStalePullRequestApprovalsRule_UnitTest.py +0 -0
  176. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/RulesetRequirements/EnsureStatusChecksRule_UnitTest.py +0 -0
  177. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/RulesetRequirements/RequireApprovalMostRecentPushRule_UnitTest.py +0 -0
  178. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/RulesetRequirements/RequireApprovalsRule_UnitTest.py +0 -0
  179. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/RulesetRequirements/RequireCodeOwnerReviewRule_UnitTest.py +0 -0
  180. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/RulesetRequirements/RequireConversationResolutionRule_UnitTest.py +0 -0
  181. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/RulesetRequirements/RequirePullRequests_UnitTest.py +0 -0
  182. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/RulesetRequirements/RequireSignedCommits_UnitTest.py +0 -0
  183. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/RulesetRequirements/RequireStatusChecksToPassRule_UnitTest.py +0 -0
  184. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/RulesetRequirements/__init__.py +0 -0
  185. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/RulsesetQuery_UnitTest.py +0 -0
  186. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/StandardQuery_UnitTest.py +0 -0
  187. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/StandardRequirements/DependabotSecurityUpdates_UnitTest.py +0 -0
  188. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/StandardRequirements/Description_UnitTest.py +0 -0
  189. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/StandardRequirements/License_UnitTest.py +0 -0
  190. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/StandardRequirements/MergeCommitMessage_UnitTest.py +0 -0
  191. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/StandardRequirements/Private_UnitTest.py +0 -0
  192. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/StandardRequirements/SecretScanningPushProtection_UnitTest.py +0 -0
  193. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/StandardRequirements/SecretScanning_UnitTest.py +0 -0
  194. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/StandardRequirements/SquashMergeCommitMessage_UnitTest.py +0 -0
  195. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/ValueRequrementImpl_UnitTest.py +0 -0
  196. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/GitHubModule/fixtures.py +0 -0
  197. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/ScientificSoftware/ScientificSoftwareQuery_UnitTest.py +0 -0
  198. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/ScientificSoftware_EndToEndTest.py +0 -0
  199. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/__snapshots__/CommunityStandards_EndToEndTest.ambr +0 -0
  200. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/__snapshots__/ScientificSoftware_EndToEndTest.ambr +0 -0
  201. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/conftest.py +0 -0
  202. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Plugins/utilities.py +0 -0
  203. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Query_UnitTest.py +0 -0
  204. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/Requirement_UnitTest.py +0 -0
  205. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/__init__.py +0 -0
  206. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/__snapshots__/ExecuteModules_UnitTest.ambr +0 -0
  207. {repoauditor-0.4.0 → repoauditor-0.4.1}/tests/conftest.py +0 -0
  208. {repoauditor-0.4.0 → repoauditor-0.4.1}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RepoAuditor
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: Add your description here
5
5
  Project-URL: Homepage, https://github.com/gt-sse-center/RepoAuditor
6
6
  Project-URL: Documentation, https://github.com/gt-sse-center/RepoAuditor
@@ -107,7 +107,7 @@ Please follow the steps below to complete the configuration.
107
107
  - Enable `Require status checks to pass`.
108
108
  - Enable `Require branches to be up to date before merging`.
109
109
  - Set the `CI+CD Workflow / Validate (ubuntu-latest, 3.12)` or an equivalent check.
110
- - Disable `Block force pushes`.
110
+ - Enable `Block force pushes`.
111
111
  - Be sure to hit `Save changes` at the end.
112
112
 
113
113
  ### Development Activities
@@ -11,8 +11,8 @@ from typing import Any, Optional
11
11
  from dbrownell_Common.Types import override
12
12
 
13
13
  from RepoAuditor.Impl.ParallelSequentialProcessor import ExecutionStyle
14
- from RepoAuditor.Plugins.GitHub.RulesetRequirements.AllowMainlineForcePushes import (
15
- AllowMainlineForcePushesRule,
14
+ from RepoAuditor.Plugins.GitHub.RulesetRequirements.BlockMainlineForcePushes import (
15
+ BlockMainlineForcePushesRule,
16
16
  )
17
17
  from RepoAuditor.Plugins.GitHub.RulesetRequirements.DismissStalePullRequestApprovals import (
18
18
  DismissStalePullRequestApprovalsRule,
@@ -68,7 +68,7 @@ class RulesetQuery(Query):
68
68
  RequireStatusChecksToPassRule(),
69
69
  RequireUpToDateBranchesRule(),
70
70
  EnsureStatusChecksRule(),
71
- AllowMainlineForcePushesRule(),
71
+ BlockMainlineForcePushesRule(),
72
72
  RequireCodeScanningResultsRule(),
73
73
  ],
74
74
  )
@@ -4,21 +4,21 @@
4
4
  # | Distributed under the MIT License.
5
5
  # |
6
6
  # -------------------------------------------------------------------------------
7
- """Contains the AllowMainlineForcePushesRule requirement."""
7
+ """Contains the BlockMainlineForcePushesRule requirement."""
8
8
 
9
9
  import textwrap
10
10
 
11
11
  from RepoAuditor.Plugins.GitHub.Impl.EnableRulesetRequirementImpl import EnableRulesetRequirementImpl
12
12
 
13
13
 
14
- class AllowMainlineForcePushesRule(EnableRulesetRequirementImpl):
15
- """Requirement for rule to allow force pushes to the matching branch."""
14
+ class BlockMainlineForcePushesRule(EnableRulesetRequirementImpl):
15
+ """Requirement for rule to block force pushes to the mainline branch."""
16
16
 
17
17
  def __init__(self) -> None:
18
18
  super().__init__(
19
- name="AllowMainlineForcePushesRule",
20
- enabled_by_default=False,
21
- dynamic_arg_name="yes",
19
+ name="BlockMainlineForcePushesRule",
20
+ enabled_by_default=True,
21
+ dynamic_arg_name="no",
22
22
  github_ruleset_type="non_fast_forward",
23
23
  github_ruleset_value="Block force pushes",
24
24
  get_configuration_value_func=self._GetValue,
@@ -34,7 +34,7 @@ class AllowMainlineForcePushesRule(EnableRulesetRequirementImpl):
34
34
 
35
35
  Reasons to Override this Default
36
36
  --------------------------------
37
- <unknown>
37
+ - If the repository only has a single developer or if is private.
38
38
  """,
39
39
  ),
40
40
  )
@@ -2,4 +2,4 @@ APP_NAME = "RepoAuditor"
2
2
 
3
3
  # Note that the default value below will be used until the value
4
4
  # here is explicitly updated by the Continuous Integration system.
5
- __version__ = "0.4.0"
5
+ __version__ = "0.4.1"
@@ -538,9 +538,9 @@ class TestRulesets:
538
538
  assert result.exit_code == -1, result.output
539
539
  assert ScrubDurationGithuburlAndSpaces(result.stdout) == snapshot
540
540
 
541
- def test_AllowMainlineForcePushesRule(self, pat_args, snapshot):
542
- """Test for requirement `Block force pushes to the specified branch` is enabled in the ruleset for the `main` branch."""
543
- result = CliRunner().invoke(app, pat_args + ["--GitHub-AllowMainlineForcePushesRule"])
541
+ def test_NoBlockMainlineForcePushesRule(self, pat_args, snapshot):
542
+ """Test for requirement `Block force pushes to the specified branch` is disabled in the ruleset for the `main` branch."""
543
+ result = CliRunner().invoke(app, pat_args + ["--GitHub-no-BlockMainlineForcePushesRule"])
544
544
 
545
545
  # Since the repo ruleset has the requirement disabled,
546
546
  # we should get an error.
@@ -4,22 +4,22 @@
4
4
  # | Distributed under the MIT License.
5
5
  # |
6
6
  # -------------------------------------------------------------------------------
7
- """Unit tests for AllowMainlineForcePushesRule.py"""
7
+ """Unit tests for BlockMainlineForcePushesRule.py"""
8
8
 
9
- from RepoAuditor.Plugins.GitHub.RulesetRequirements.AllowMainlineForcePushes import (
10
- AllowMainlineForcePushesRule,
9
+ from RepoAuditor.Plugins.GitHub.RulesetRequirements.BlockMainlineForcePushes import (
10
+ BlockMainlineForcePushesRule,
11
11
  )
12
12
  from RepoAuditor.Requirement import EvaluateResult
13
13
 
14
14
  from . import create_rule
15
15
 
16
16
 
17
- class TestAllowMainlineForcePushesRule:
18
- """Unit tests for the AllowMainlineForcePushesRule requirement."""
17
+ class TestBlockMainlineForcePushesRule:
18
+ """Unit tests for the BlockMainlineForcePushesRule requirement."""
19
19
 
20
20
  def test_Enabled(self, query_data):
21
21
  """Test if the rule is enabled on the main branch."""
22
- requirement = AllowMainlineForcePushesRule()
22
+ requirement = BlockMainlineForcePushesRule()
23
23
 
24
24
  query_data["rules"].append(
25
25
  create_rule(
@@ -36,7 +36,7 @@ class TestAllowMainlineForcePushesRule:
36
36
 
37
37
  def test_Disabled(self, query_data):
38
38
  """Test if the rule is disabled by not providing the appropriate rule within the ruleset."""
39
- requirement = AllowMainlineForcePushesRule()
39
+ requirement = BlockMainlineForcePushesRule()
40
40
 
41
41
  query_data["rules"].append(
42
42
  create_rule(
@@ -4,7 +4,7 @@
4
4
  # | Distributed under the MIT License.
5
5
  # |
6
6
  # -------------------------------------------------------------------------------
7
- """Unit tests for AllowMainlineForcePushesRule.py"""
7
+ """Unit tests for RequireUpToDateBranchesRule.py"""
8
8
 
9
9
  from RepoAuditor.Plugins.GitHub.RulesetRequirements.RequireUpToDateBranches import (
10
10
  RequireUpToDateBranchesRule,
@@ -568,9 +568,9 @@ class TestRulesets:
568
568
  assert result.exit_code == -1, result.output
569
569
  assert ScrubDurationGithuburlAndSpaces(result.stdout) == snapshot
570
570
 
571
- def test_AllowMainlineForcePushesRule(self, pat_args, snapshot):
572
- """Test for requirement `Block force pushes to the specified branch` is enabled in the ruleset for the `main` branch."""
573
- result = CliRunner().invoke(app, pat_args + ["--GitHub-AllowMainlineForcePushesRule"])
571
+ def test_NoBlockMainlineForcePushesRule(self, pat_args, snapshot):
572
+ """Test for requirement `Block force pushes to the specified branch` is disabled in the ruleset for the `main` branch."""
573
+ result = CliRunner().invoke(app, pat_args + ["--GitHub-no-BlockMainlineForcePushesRule"])
574
574
 
575
575
  # Since the repo ruleset has the requirement disabled,
576
576
  # we should get an error.
@@ -23,7 +23,7 @@
23
23
  │ │
24
24
  │ ╭─ [Error] AllowDeletions ─────────────────────────────────────────────────────────────────────────────────────────╮ │
25
25
  │ │ │ │
26
- │ │ Validates that 'Allow deletions' is set to True. │ │
26
+ │ │ Validates that 'Allow deletions' is set to False. │ │
27
27
  │ │ │ │
28
28
  │ │ ERROR: 'Allow deletions' must be set to 'True' (it is currently set to 'False'). │ │
29
29
  │ │ │ │
@@ -712,7 +712,24 @@
712
712
 
713
713
  '''
714
714
  # ---
715
- # name: TestRulesets.test_AllowMainlineForcePushesRule
715
+ # name: TestRulesets.test_Default
716
+ '''
717
+ Processing 1 module...
718
+ Processing 'GitHub' (1 of 1)...
719
+
720
+
721
+
722
+
723
+ DONE! (-1, <scrubbed duration>)
724
+ DONE! (-1, <scrubbed duration>)
725
+ ERROR: 'branch'
726
+
727
+ Results: DONE! (-1, <scrubbed duration>)
728
+
729
+
730
+ '''
731
+ # ---
732
+ # name: TestRulesets.test_DismissStalePullRequestApprovalsRule
716
733
  '''
717
734
  Processing 1 module...
718
735
  Processing 'GitHub' (1 of 1)...
@@ -734,18 +751,21 @@
734
751
  │ Errors: 1 (1.89%) │
735
752
  │ Skipped: 5 (9.43%) │
736
753
  │ │
737
- │ ╭─ [Error] AllowMainlineForcePushesRule ───────────────────────────────────────────────────────────────────────────╮ │
754
+ │ ╭─ [Error] DismissStalePullRequestApprovalsRule ───────────────────────────────────────────────────────────────────╮ │
738
755
  │ │ │ │
739
- │ │ Validates that 'Block force pushes' is set to True. │ │
756
+ │ │ Validates that 'Require a pull request before merging -> Dismiss stale pull request approvals when new commits │ │
757
+ │ │ are pushed' is set to False. │ │
740
758
  │ │ │ │
741
- │ │ ERROR: No active branch ruleset with 'Block force pushes' found │ │
759
+ │ │ ERROR: 'Require a pull request before merging -> Dismiss stale pull request approvals when new commits are │ │
760
+ │ │ pushed' rule active in ruleset 'main'. It should be set to False. │ │
742
761
  │ │ │ │
743
762
  │ │ Resolution │ │
744
763
  │ │ ---------- │ │
745
764
  │ │ 1) Visit '<scrubbed-github-url>'. │ │
746
765
  │ │ 2) Find or create a ruleset on the branch 'main'. │ │
747
- │ │ 3) Go to 'Block force pushes'. │ │
748
- │ │ 4) Enable the rule. │ │
766
+ │ │ 3) Go to 'Require a pull request before merging -> Dismiss stale pull request approvals when new commits are │ │
767
+ │ │ pushed'. │ │
768
+ │ │ 4) Disable the rule. │ │
749
769
  │ │ │ │
750
770
  │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
751
771
  │ ╭─ Metrics ────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │
@@ -765,24 +785,7 @@
765
785
 
766
786
  '''
767
787
  # ---
768
- # name: TestRulesets.test_Default
769
- '''
770
- Processing 1 module...
771
- Processing 'GitHub' (1 of 1)...
772
-
773
-
774
-
775
-
776
- DONE! (-1, <scrubbed duration>)
777
- DONE! (-1, <scrubbed duration>)
778
- ERROR: 'branch'
779
-
780
- Results: DONE! (-1, <scrubbed duration>)
781
-
782
-
783
- '''
784
- # ---
785
- # name: TestRulesets.test_DismissStalePullRequestApprovalsRule
788
+ # name: TestRulesets.test_NoBlockMainlineForcePushesRule
786
789
  '''
787
790
  Processing 1 module...
788
791
  Processing 'GitHub' (1 of 1)...
@@ -804,20 +807,17 @@
804
807
  │ Errors: 1 (1.89%) │
805
808
  │ Skipped: 5 (9.43%) │
806
809
  │ │
807
- │ ╭─ [Error] DismissStalePullRequestApprovalsRule ───────────────────────────────────────────────────────────────────╮ │
810
+ │ ╭─ [Error] BlockMainlineForcePushesRule ───────────────────────────────────────────────────────────────────────────╮ │
808
811
  │ │ │ │
809
- │ │ Validates that 'Require a pull request before merging -> Dismiss stale pull request approvals when new commits │ │
810
- │ │ are pushed' is set to False. │ │
812
+ │ │ Validates that 'Block force pushes' is set to False. │ │
811
813
  │ │ │ │
812
- │ │ ERROR: 'Require a pull request before merging -> Dismiss stale pull request approvals when new commits are │ │
813
- │ │ pushed' rule active in ruleset 'main'. It should be set to False. │ │
814
+ │ │ ERROR: 'Block force pushes' rule active in ruleset 'main'. It should be set to False. │ │
814
815
  │ │ │ │
815
816
  │ │ Resolution │ │
816
817
  │ │ ---------- │ │
817
818
  │ │ 1) Visit '<scrubbed-github-url>'. │ │
818
819
  │ │ 2) Find or create a ruleset on the branch 'main'. │ │
819
- │ │ 3) Go to 'Require a pull request before merging -> Dismiss stale pull request approvals when new commits are │ │
820
- │ │ pushed'. │ │
820
+ │ │ 3) Go to 'Block force pushes'. │ │
821
821
  │ │ 4) Disable the rule. │ │
822
822
  │ │ │ │
823
823
  │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
@@ -712,7 +712,24 @@
712
712
 
713
713
  '''
714
714
  # ---
715
- # name: TestRulesets.test_AllowMainlineForcePushesRule
715
+ # name: TestRulesets.test_Default
716
+ '''
717
+ Processing 1 module...
718
+ Processing 'GitHub' (1 of 1)...
719
+
720
+
721
+
722
+
723
+ DONE! (-1, <scrubbed duration>)
724
+ DONE! (-1, <scrubbed duration>)
725
+ ERROR: 'branch'
726
+
727
+ Results: DONE! (-1, <scrubbed duration>)
728
+
729
+
730
+ '''
731
+ # ---
732
+ # name: TestRulesets.test_DismissStalePullRequestApprovalsRule
716
733
  '''
717
734
  Processing 1 module...
718
735
  Processing 'GitHub' (1 of 1)...
@@ -734,18 +751,21 @@
734
751
  │ Errors: 1 (1.89%) │
735
752
  │ Skipped: 1 (1.89%) │
736
753
  │ │
737
- │ ╭─ [Error] AllowMainlineForcePushesRule ───────────────────────────────────────────────────────────────────────────╮ │
754
+ │ ╭─ [Error] DismissStalePullRequestApprovalsRule ───────────────────────────────────────────────────────────────────╮ │
738
755
  │ │ │ │
739
- │ │ Validates that 'Block force pushes' is set to True. │ │
756
+ │ │ Validates that 'Require a pull request before merging -> Dismiss stale pull request approvals when new commits │ │
757
+ │ │ are pushed' is set to False. │ │
740
758
  │ │ │ │
741
- │ │ ERROR: No active branch ruleset with 'Block force pushes' found │ │
759
+ │ │ ERROR: 'Require a pull request before merging -> Dismiss stale pull request approvals when new commits are │ │
760
+ │ │ pushed' rule active in ruleset 'main'. It should be set to False. │ │
742
761
  │ │ │ │
743
762
  │ │ Resolution │ │
744
763
  │ │ ---------- │ │
745
764
  │ │ 1) Visit '<scrubbed-github-url>'. │ │
746
765
  │ │ 2) Find or create a ruleset on the branch 'main'. │ │
747
- │ │ 3) Go to 'Block force pushes'. │ │
748
- │ │ 4) Enable the rule. │ │
766
+ │ │ 3) Go to 'Require a pull request before merging -> Dismiss stale pull request approvals when new commits are │ │
767
+ │ │ pushed'. │ │
768
+ │ │ 4) Disable the rule. │ │
749
769
  │ │ │ │
750
770
  │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
751
771
  │ ╭─ Metrics ────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │
@@ -765,24 +785,7 @@
765
785
 
766
786
  '''
767
787
  # ---
768
- # name: TestRulesets.test_Default
769
- '''
770
- Processing 1 module...
771
- Processing 'GitHub' (1 of 1)...
772
-
773
-
774
-
775
-
776
- DONE! (-1, <scrubbed duration>)
777
- DONE! (-1, <scrubbed duration>)
778
- ERROR: 'branch'
779
-
780
- Results: DONE! (-1, <scrubbed duration>)
781
-
782
-
783
- '''
784
- # ---
785
- # name: TestRulesets.test_DismissStalePullRequestApprovalsRule
788
+ # name: TestRulesets.test_EnsureStatusChecksRule
786
789
  '''
787
790
  Processing 1 module...
788
791
  Processing 'GitHub' (1 of 1)...
@@ -804,21 +807,21 @@
804
807
  │ Errors: 1 (1.89%) │
805
808
  │ Skipped: 1 (1.89%) │
806
809
  │ │
807
- │ ╭─ [Error] DismissStalePullRequestApprovalsRule ───────────────────────────────────────────────────────────────────╮ │
810
+ │ ╭─ [Error] EnsureStatusChecksRule ─────────────────────────────────────────────────────────────────────────────────╮ │
808
811
  │ │ │ │
809
- │ │ Validates that 'Require a pull request before merging -> Dismiss stale pull request approvals when new commits │ │
810
- │ │ are pushed' is set to False. │ │
812
+ │ │ Validates that 'Require status checks to pass -> Status checks that are required' is set to False. │ │
811
813
  │ │ │ │
812
- │ │ ERROR: 'Require a pull request before merging -> Dismiss stale pull request approvals when new commits are │ │
813
- │ │ pushed' rule active in ruleset 'main'. It should be set to False. │ │
814
+ │ │ ERROR: 'Require status checks to pass -> Status checks that are required' rule active in ruleset 'main'. It │ │
815
+ │ │ should be set to False. │ │
814
816
  │ │ │ │
815
817
  │ │ Resolution │ │
816
818
  │ │ ---------- │ │
817
819
  │ │ 1) Visit '<scrubbed-github-url>'. │ │
818
820
  │ │ 2) Find or create a ruleset on the branch 'main'. │ │
819
- │ │ 3) Go to 'Require a pull request before merging -> Dismiss stale pull request approvals when new commits are │ │
820
- │ │ pushed'. │ │
821
- │ │ 4) Disable the rule. │ │
821
+ │ │ 3) Go to ''Require status checks to pass -> Status checks that are required''. │ │
822
+ │ │ 4) Click on '+ Add checks'. │ │
823
+ │ │ 5) Type the name of the check to enforce. │ │
824
+ │ │ 6) Select status checks that must pass before merging. │ │
822
825
  │ │ │ │
823
826
  │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
824
827
  │ ╭─ Metrics ────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │
@@ -838,7 +841,7 @@
838
841
 
839
842
  '''
840
843
  # ---
841
- # name: TestRulesets.test_EnsureStatusChecksRule
844
+ # name: TestRulesets.test_NoBlockMainlineForcePushesRule
842
845
  '''
843
846
  Processing 1 module...
844
847
  Processing 'GitHub' (1 of 1)...
@@ -860,21 +863,18 @@
860
863
  │ Errors: 1 (1.89%) │
861
864
  │ Skipped: 1 (1.89%) │
862
865
  │ │
863
- │ ╭─ [Error] EnsureStatusChecksRule ─────────────────────────────────────────────────────────────────────────────────╮ │
866
+ │ ╭─ [Error] BlockMainlineForcePushesRule ───────────────────────────────────────────────────────────────────────────╮ │
864
867
  │ │ │ │
865
- │ │ Validates that 'Require status checks to pass -> Status checks that are required' is set to False. │ │
868
+ │ │ Validates that 'Block force pushes' is set to False. │ │
866
869
  │ │ │ │
867
- │ │ ERROR: 'Require status checks to pass -> Status checks that are required' rule active in ruleset 'main'. It │ │
868
- │ │ should be set to False. │ │
870
+ │ │ ERROR: 'Block force pushes' rule active in ruleset 'main'. It should be set to False. │ │
869
871
  │ │ │ │
870
872
  │ │ Resolution │ │
871
873
  │ │ ---------- │ │
872
874
  │ │ 1) Visit '<scrubbed-github-url>'. │ │
873
875
  │ │ 2) Find or create a ruleset on the branch 'main'. │ │
874
- │ │ 3) Go to ''Require status checks to pass -> Status checks that are required''. │ │
875
- │ │ 4) Click on '+ Add checks'. │ │
876
- │ │ 5) Type the name of the check to enforce. │ │
877
- │ │ 6) Select status checks that must pass before merging. │ │
876
+ │ │ 3) Go to 'Block force pushes'. │ │
877
+ │ │ 4) Disable the rule. │ │
878
878
  │ │ │ │
879
879
  │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
880
880
  │ ╭─ Metrics ────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │
@@ -3276,11 +3276,11 @@
3276
3276
  │ │ SUCCESS: 'Require status checks to pass -> Status checks that are required' is enabled in Ruleset 'main' │ │
3277
3277
  │ │ │ │
3278
3278
  │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
3279
- │ ╭─ [Success] AllowMainlineForcePushesRule ─────────────────────────────────────────────────────────────────────────╮ │
3279
+ │ ╭─ [Success] BlockMainlineForcePushesRule ─────────────────────────────────────────────────────────────────────────╮ │
3280
3280
  │ │ │ │
3281
- │ │ Validates that 'Block force pushes' is set to False. │ │
3281
+ │ │ Validates that 'Block force pushes' is set to True. │ │
3282
3282
  │ │ │ │
3283
- │ │ SUCCESS: 'Block force pushes' is disabled │ │
3283
+ │ │ SUCCESS: 'Block force pushes' is enabled in Ruleset 'main' │ │
3284
3284
  │ │ │ │
3285
3285
  │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
3286
3286
  │ ╭─ [Success] RequireCodeScanningResultsRule ───────────────────────────────────────────────────────────────────────╮ │
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes