-
Notifications
You must be signed in to change notification settings - Fork 1
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
Investigate identifying first commit in a repository #38
Comments
That is absolutely true. I understand that the idea behind this ticket is to flag the 1st commit and display a different message if that's the case. I don't think we should single out this one case though, but rather provide a more comprehensive message, that doesn't look like an error. Let's also consider the fact that we might be missing a base for different reasons:
Regardless of the reason we don't have a base (or head) I think that we need to improve the message on Having the knowledge that this is the first commit or not doesn't seem relevant for that change in particular |
Now on to counting commits. For this I think introducing a We can easily update this info when assigning the branch from the git provider to the commit, even removing commits from a branch count if we have to switch the commit branch. Then, if we have 0 branches for a repo, or if we have 0 commits for the default branch, we know it's a first commit. |
The ticket simply asks for a suggestion, that is mine. Open for feedback, for sure, but losing this for now. |
We need to investigate and come up with a solution for identifying the first commit in a repository. Users often encounter a ‘missing head' message on their first commit when setting up a repo, which is confusing leading to poor user experience. Our goal with this ticket is to explore potential strategies for identifying the first commit. A successful solution will give us the ability to provide more informative guidance during initial setup.
Some potential solutions and their issues are:
Counting the commits for a repo: This may become super expensive as the repo grows
Flagging the first commit in the database: It's unclear when and how we would set this flag. Would it be set once they merge to the default branch? What if they never merge to their default branch?
Acceptance Criteria:
The text was updated successfully, but these errors were encountered: