Skip to content
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

Merged
merged 2 commits into from
Apr 4, 2023

Conversation

Venefilyn
Copy link
Collaborator

Within the header there will now be a shorthash visible that links to packit/dashboard page

Part of #209

image

TODO:

  • ‹fill in›

Fixes

Related to

Merge before/after


RELEASE NOTES BEGIN
Add commit hash for dashboard in page header
RELEASE NOTES END

@softwarefactory-project-zuul
Copy link
Contributor

@softwarefactory-project-zuul
Copy link
Contributor

<PageHeaderTools>
<Button
component="a"
href={`https://github.com/packit/dashboard/commit/${process.env.REACT_APP_GIT_SHA}`}
Copy link
Member

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)
Copy link
Member

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?

Copy link
Member

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 :/

Copy link
Collaborator Author

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

@Venefilyn Venefilyn changed the title feat: add commit has in page header feat: add commit hash in page header Mar 27, 2023
@softwarefactory-project-zuul
Copy link
Contributor

Makefile Outdated
Comment on lines 44 to 45
--build-arg REASCT_APP_API_URL=$(API_STG) \
--build-arg GIT_SHA=$(GIT_SHA) \
Copy link
Collaborator Author

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

@softwarefactory-project-zuul
Copy link
Contributor

Within the header there will now be a shorthash visible that links to
packit/dashboard page

Part of packit#209
@softwarefactory-project-zuul
Copy link
Contributor

@mfocko
Copy link
Member

mfocko commented Apr 4, 2023

I hope it's fixed now :)

Copy link
Member

@mfocko mfocko left a comment

Choose a reason for hiding this comment

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

Well, YOLO

@mfocko mfocko added this pull request to the merge queue Apr 4, 2023
Merged via the queue into packit:main with commit 094d60a Apr 4, 2023
@Venefilyn Venefilyn deleted the feat/commit-hash-in-header branch April 4, 2023 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants