Display git tag and (short) hash #27

Closed
opened 2025-09-22 05:06:51 +00:00 by mrleblanc101 · 4 comments
mrleblanc101 commented 2025-09-22 05:06:51 +00:00 (Migrated from github.com)

Hi,
Instead of displaying the branch, it would be nice to be able to display the git tag and short hash.
Usually, our display look like this:

Dev: 12345678 (hash only)
Preprod: 2.2.0-rc.1 - 12345678 (rc tag + hash)
Prod: 2.2.0 - 12345678 (tag + hash)

Hi, Instead of displaying the branch, it would be nice to be able to display the git tag and short hash. Usually, our display look like this: Dev: 12345678 (hash only) Preprod: 2.2.0-rc.1 - 12345678 (rc tag + hash) Prod: 2.2.0 - 12345678 (tag + hash)
pxlrbt commented 2025-09-22 08:47:09 +00:00 (Migrated from github.com)

Tag + Hash could get quite long, don't you think? I don't mind a PR adding these features. Maybe a new method ->showGitInfo() which accepts a Closure getting the information. ->showGitBranch() should then use ->showGitInfo() and use a Closure to identify the branch.

Tag + Hash could get quite long, don't you think? I don't mind a PR adding these features. Maybe a new method `->showGitInfo()` which accepts a Closure getting the information. `->showGitBranch()` should then use `->showGitInfo()` and use a Closure to identify the branch.
mrleblanc101 commented 2025-09-23 04:12:59 +00:00 (Migrated from github.com)

I don't think it's that long, I haven't installed the plugin yet so I'm not sure how it is displayed, but perhaps it could be a tooltip

Image
I don't think it's that long, I haven't installed the plugin yet so I'm not sure how it is displayed, but perhaps it could be a tooltip <img width="406" height="138" alt="Image" src="https://github.com/user-attachments/assets/5a7fe94b-c76e-4dd9-93f5-6bb60a6b8ce1" />
SujalRatnaTamrakar commented 2026-07-03 17:37:13 +00:00 (Migrated from github.com)

Hi! I'm a student in the CodePath AI301 program, an AI open-source practicum I'm doing this summer. I'd love to work on this issue since it caught my eye and I have experience working with Laravel and Filament. I’ll start by exploring how to efficiently show the git tag and hash. Please let me know if there are any active discussions or edge cases I should keep in mind. Looking forward to working on this!

Hi! I'm a student in the CodePath AI301 program, an AI open-source practicum I'm doing this summer. I'd love to work on this issue since it caught my eye and I have experience working with Laravel and Filament. I’ll start by exploring how to efficiently show the git tag and hash. Please let me know if there are any active discussions or edge cases I should keep in mind. Looking forward to working on this!
pxlrbt commented 2026-07-03 20:11:45 +00:00 (Migrated from github.com)

@SujalRatnaTamrakar The only edge case would be long version numbers. We shouldn't increase the badge size. It should stay compact. Git branch/Git Hash should be opt-in. Also consider both options active at the same time.

@SujalRatnaTamrakar The only edge case would be long version numbers. We shouldn't increase the badge size. It should stay compact. Git branch/Git Hash should be opt-in. Also consider both options active at the same time.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pxlrbt/filament-environment-indicator#27
No description provided.