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

Feature/display git sha on page in previewdev environments #107

Merged

Conversation

TyHil
Copy link
Member

@TyHil TyHil commented Apr 28, 2023

Overview

Resolves #43

Adds a button on all preview deployment pages to visit the commit on GitHub that triggered the deployment.

What Changed

Only changes pages/_app.tsx to place the button on all pages. Uses the NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA Vercel environment variable to link to the correct commit and NEXT_PUBLIC_VERCEL_ENV to determine when to show the button.

@TyHil TyHil requested a review from iamwood as a code owner April 28, 2023 01:06
@TyHil TyHil linked an issue Apr 28, 2023 that may be closed by this pull request
@vercel
Copy link

vercel bot commented Apr 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
utd-trends ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 12, 2023 0:39am

Copy link
Contributor

@Jake3231 Jake3231 left a comment

Choose a reason for hiding this comment

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

Overall looks great!

pages/_app.tsx Outdated Show resolved Hide resolved
@Jake3231 Jake3231 merged commit 77e7ab1 into develop Oct 12, 2023
2 checks passed
@Jake3231 Jake3231 deleted the feature/display-git-sha-on-page-in-previewdev-environments branch October 12, 2023 17:15
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.

[Feature Request] Display git SHA on page in preview/dev environments
2 participants