Repository navigation
feat: Default to All branches when default branch has no commits - #2446
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2446 +/- ##
=======================================
+ Coverage 98.07 98.08 +0.01
=======================================
Files 763 764 +1
Lines 9691 9724 +33
Branches 2397 2455 +58
=======================================
+ Hits 9504 9537 +33
Misses 185 185
Partials 2 2
Continue to review full report in Codecov by Sentry.
|
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2446 +/- ##
=======================================
Coverage 98.07% 98.07%
=======================================
Files 763 764 +1
Lines 9691 9724 +33
Branches 2397 2436 +39
=======================================
+ Hits 9504 9537 +33
Misses 185 185
Partials 2 2
Continue to review full report in Codecov by Sentry.
|
Codecov Report
@@ Coverage Diff @@
## main #2446 +/- ##
=======================================
Coverage 98.07% 98.07%
=======================================
Files 763 764 +1
Lines 9691 9724 +33
Branches 2441 2450 +9
=======================================
+ Hits 9504 9537 +33
Misses 185 185
Partials 2 2
Continue to review full report in Codecov by Sentry.
|
✅ Deploy Preview for gazebo-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
1d69c8d to
1a54a56
Compare
There was a problem hiding this comment.
The git diff provides an overall decent implementation, but there are a few key areas that need improvement or clarification. The main issues include hard-coded string values for data comparison, the use of low-level hooks, potential over-fetching of data, and a lack of clear error handling.
…overage-on-default-branch-on-commits-page
Description
This PR makes it so that when you visit the commits tab of a repo whose default branch has no commits it will swap over to the
All branchesoption by updating the query params on the initial render, so users can force their way back to the default branch if they wish to investigate further.Closes codecov/engineering-team#870
Notable Changes
useBranchHasCommitshookCommitsTabto swap toAll brancheswhen default branch has no commits only on initial render.Screenshots
Screen.Recording.2023-12-08.at.10.35.02.mov