-
Notifications
You must be signed in to change notification settings - Fork 36
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
feat: add commit hash in page header #225
Conversation
Build succeeded. ✔️ pre-commit SUCCESS in 1m 32s |
a1f51ae
to
ae3fa57
Compare
Build succeeded. ✔️ pre-commit SUCCESS in 1m 29s |
<PageHeaderTools> | ||
<Button | ||
component="a" | ||
href={`https://github.com/packit/dashboard/commit/${process.env.REACT_APP_GIT_SHA}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow, this is fantastic!
@@ -4,6 +4,8 @@ TEST_IMAGE ?= packit-dashboard-tests | |||
TEST_TARGET ?= ./tests/ | |||
CONTAINER_ENGINE ?= $(shell command -v podman 2> /dev/null || echo docker) | |||
API_STG = "https://stg.packit.dev/api" | |||
GIT_SHA_FETCH := $(shell git rev-parse HEAD) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to get this logic into the main Dockerfile as this makefile is not used during the image build process
@jpopelka do I get it right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it… I thought we ran Makefile in the dockerfile, but no :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll check and fix it
ae3fa57
to
ee796f4
Compare
Build succeeded. ✔️ pre-commit SUCCESS in 1m 29s |
Makefile
Outdated
--build-arg REASCT_APP_API_URL=$(API_STG) \ | ||
--build-arg GIT_SHA=$(GIT_SHA) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mfocko do you think this fixes it? I can't check on my laptop easily due to using Kinoite
Build succeeded. ✔️ pre-commit SUCCESS in 1m 34s |
c1188f1
to
fd3a26d
Compare
Within the header there will now be a shorthash visible that links to packit/dashboard page Part of packit#209
Build succeeded. ✔️ pre-commit SUCCESS in 1m 25s |
Signed-off-by: Matej Focko <[email protected]>
I hope it's fixed now :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, YOLO
Within the header there will now be a shorthash visible that links to packit/dashboard page
Part of #209
TODO:
Fixes
Related to
Merge before/after
RELEASE NOTES BEGIN
Add commit hash for dashboard in page header
RELEASE NOTES END