Skip to content

[Sprint 3] Fix install-hooks.sh Gate 0 description to include sprint/* branches - #78

Merged
mpaulosky merged 2 commits into
devfrom
squad/61-fix-pre-push-gate
Apr 20, 2026
Merged

[Sprint 3] Fix install-hooks.sh Gate 0 description to include sprint/* branches#78
mpaulosky merged 2 commits into
devfrom
squad/61-fix-pre-push-gate

Conversation

@mpaulosky

Copy link
Copy Markdown
Owner

Summary

Working as Boromir (DevOps / Infra)

Closes #61

The pre-push hook Gate 0 fix for sprint/* branches was already merged via PR #62 into sprint/3-mongodb-persistence (and subsequently into dev). The one remaining gap: scripts/install-hooks.sh still printed an outdated Gate 0 description that only mentioned squad/{issue}-{slug}.

This PR updates the install-hooks.sh output text to accurately document both valid branch patterns.

Changes

  • scripts/install-hooks.sh — Gate 0 description now lists both patterns:
    • squad/{issue}-{slug} → runs all gates (build + tests)
    • sprint/{N}-{slug} → passes Gate 0, exits (skips feature gates)

Merge hierarchy

squad/{issue}-{slug} → sprint/{N}-{slug} → dev → main (release only)

Acceptance Criteria

…t/* [Sprint 3]

The pre-push hook already supports sprint/{N}-{slug} branches (early-exit
after Gate 0 naming check), but install-hooks.sh still only mentioned
squad/{issue}-{slug} in its Gate 0 description. Update the summary text to
accurately document both valid branch patterns.

Merge hierarchy: squad/* → sprint/* → dev → main (release only)

Closes #61

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 20, 2026 17:48
@github-actions github-actions Bot added the squad Squad triage inbox — Lead will assign to a member label Apr 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🏗️ PR Added to Squad Triage Queue

This PR has been labeled with squad and added to the triage queue.

Next steps:

  • The squad Lead will review and assign to an appropriate team member
  • A squad:member label will be added after triage

If you know which squad member should handle this, you can add the appropriate squad:member label yourself.

@github-actions

github-actions Bot commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Summary
Generated on: 04/20/2026 - 18:36:30
Coverage date: 04/20/2026 - 18:35:51 - 04/20/2026 - 18:36:08
Parser: MultiReport (4x Cobertura)
Assemblies: 4
Classes: 51
Files: 50
Line coverage: 66.9% (564 of 842)
Covered lines: 564
Uncovered lines: 278
Coverable lines: 842
Total lines: 2543
Branch coverage: 67.3% (194 of 288)
Covered branches: 194
Total branches: 288
Method coverage: Feature is only available for sponsors
Tag: 89_24683695997

Coverage

AppHost - 0%
Name Line Branch
AppHost 0% ****
Program 0%
Domain - 87.2%
Name Line Branch
Domain 87.2% 91.6%
Domain.Abstractions.Result 95% 50%
Domain.Abstractions.Result`1 75% 50%
MyBlog.Domain.Behaviors.ValidationBehavior`2 100% 100%
MyBlog.Domain.Entities.BlogPost 100%
MyBlog.Domain.Features.BlogPosts.Commands.CreateBlogPost.CreateBlogPostComm
and
100%
MyBlog.Domain.Features.BlogPosts.Commands.CreateBlogPost.CreateBlogPostComm
andHandler
100%
MyBlog.Domain.Features.BlogPosts.Commands.CreateBlogPost.CreateBlogPostComm
andValidator
0%
MyBlog.Domain.Features.BlogPosts.Commands.DeleteBlogPost.DeleteBlogPostComm
and
100%
MyBlog.Domain.Features.BlogPosts.Commands.DeleteBlogPost.DeleteBlogPostComm
andHandler
100%
MyBlog.Domain.Features.BlogPosts.Commands.DeleteBlogPost.DeleteBlogPostComm
andValidator
0%
MyBlog.Domain.Features.BlogPosts.Commands.UpdateBlogPost.UpdateBlogPostComm
and
100%
MyBlog.Domain.Features.BlogPosts.Commands.UpdateBlogPost.UpdateBlogPostComm
andHandler
100% 100%
MyBlog.Domain.Features.BlogPosts.Commands.UpdateBlogPost.UpdateBlogPostComm
andValidator
0%
MyBlog.Domain.Features.BlogPosts.Queries.GetAllBlogPosts.GetAllBlogPostsQue
ryHandler
100%
MyBlog.Domain.Features.BlogPosts.Queries.GetBlogPostById.GetBlogPostByIdQue
ry
100%
MyBlog.Domain.Features.BlogPosts.Queries.GetBlogPostById.GetBlogPostByIdQue
ryHandler
100% 100%
ServiceDefaults - 0%
Name Line Branch
ServiceDefaults 0% 0%
Microsoft.Extensions.Hosting.Extensions 0% 0%
Web - 69.4%
Name Line Branch
Web 69.4% 69.9%
MyBlog.Web.Components.Layout.MainLayout 100%
MyBlog.Web.Components.Layout.NavMenu 82.8% 71.4%
MyBlog.Web.Components.Pages.Error 100% 75%
MyBlog.Web.Components.Routes 0% 0%
MyBlog.Web.Components.Shared.RedirectToLogin 100%
MyBlog.Web.Data.BlogDbContext 100%
MyBlog.Web.Data.BlogPostDto 100%
MyBlog.Web.Data.BlogPostMappings 100%
MyBlog.Web.Data.MongoDbBlogPostRepository 100% 100%
MyBlog.Web.Features.BlogPosts.Create.Create 75% 50%
MyBlog.Web.Features.BlogPosts.Create.CreateBlogPostCommand 100%
MyBlog.Web.Features.BlogPosts.Create.CreateBlogPostCommandValidator 100%
MyBlog.Web.Features.BlogPosts.Create.CreateBlogPostHandler 100%
MyBlog.Web.Features.BlogPosts.Delete.ConfirmDeleteDialog 100% 100%
MyBlog.Web.Features.BlogPosts.Delete.DeleteBlogPostCommand 100%
MyBlog.Web.Features.BlogPosts.Delete.DeleteBlogPostCommandValidator 100%
MyBlog.Web.Features.BlogPosts.Delete.DeleteBlogPostHandler 100%
MyBlog.Web.Features.BlogPosts.Edit.Edit 88% 75%
MyBlog.Web.Features.BlogPosts.Edit.EditBlogPostCommand 100%
MyBlog.Web.Features.BlogPosts.Edit.EditBlogPostCommandValidator 100%
MyBlog.Web.Features.BlogPosts.Edit.EditBlogPostHandler 84% 90%
MyBlog.Web.Features.BlogPosts.Edit.GetBlogPostByIdQuery 100%
MyBlog.Web.Features.BlogPosts.List.GetBlogPostsHandler 100% 100%
MyBlog.Web.Features.BlogPosts.List.Index 86.8% 84.6%
MyBlog.Web.Features.UserManagement.AssignRoleCommand 100%
MyBlog.Web.Features.UserManagement.ManageRoles 90.4% 75%
MyBlog.Web.Features.UserManagement.Profile 97.3% 83.3%
MyBlog.Web.Features.UserManagement.RemoveRoleCommand 100%
MyBlog.Web.Features.UserManagement.RoleDto 100%
MyBlog.Web.Features.UserManagement.UserManagementHandler 0% 0%
MyBlog.Web.Features.UserManagement.UserWithRolesDto 100%
MyBlog.Web.Security.RoleClaimsHelper 96.7% 94.1%
Program 0% 0%

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the developer-facing hook installation output so it accurately describes Gate 0 behavior for both squad/* and sprint/* branch workflows, aligning the documentation with the already-merged pre-push hook logic.

Changes:

  • Update scripts/install-hooks.sh Gate 0 description to mention both squad/{issue}-{slug} and sprint/{N}-{slug} patterns.
  • Clarify that sprint/* passes Gate 0 and exits (skipping feature gates).

Comment thread scripts/install-hooks.sh
Comment on lines 62 to +64
echo "The hook enforces 5 gates on every 'git push':"
echo " 0. Enforces squad/{issue}-{slug} branch naming"
echo " 0. Enforces branch naming — squad/{issue}-{slug} runs all gates;"
echo " sprint/{N}-{slug} passes Gate 0 and exits (skips feature gates)"

Copilot AI Apr 20, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message "The hook enforces 5 gates on every 'git push'" is now misleading because sprint/* branches exit after Gate 0 (per .github/hooks/pre-push). Consider rewording this line to clarify that all 5 gates run on squad/* branches, while sprint/* runs only Gate 0 and then exits.

Copilot uses AI. Check for mistakes.
@mpaulosky
mpaulosky enabled auto-merge (squash) April 20, 2026 17:52
@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Branch Rate Complexity Health
Domain 0% 0% 77
Web 0% 0% 341
ServiceDefaults 0% 0% 18
Domain 0% 0% 77
Web 0% 0% 341
ServiceDefaults 0% 0% 18
AppHost 0% 100% 1
Domain 20% 0% 77
Web 5% 1% 341
ServiceDefaults 0% 0% 18
AppHost 0% 100% 1
Domain 20% 0% 77
Web 5% 1% 341
ServiceDefaults 0% 0% 18
Domain 87% 92% 77
Web 64% 66% 341
ServiceDefaults 0% 0% 18
Domain 87% 92% 77
Web 64% 66% 341
ServiceDefaults 0% 0% 18
Summary 24% (1180 / 5012) 22% (392 / 1800) 2618

@mpaulosky
mpaulosky merged commit 3fa10ce into dev Apr 20, 2026
7 checks passed
@mpaulosky
mpaulosky deleted the squad/61-fix-pre-push-gate branch April 20, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

squad Squad triage inbox — Lead will assign to a member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Sprint 3] Fix pre-push Gate 0 to allow sprint/* branches

2 participants