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 startup banner #18

Merged
merged 3 commits into from
Feb 23, 2024
Merged

Feat startup banner #18

merged 3 commits into from
Feb 23, 2024

Conversation

chengcyber
Copy link
Member

@chengcyber chengcyber commented Feb 23, 2024

Basic Checks

Have you run rush change for this change?

  • Yes
  • No

If No, please run rush change before, this is necessary.

If adding a new feature, the PR's description includes:

  • Reason for adding this feature
  • How to use
  • A basic example

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

Summary

Add a startup banner display version infos.

Detail

CleanShot 2024-02-22 at 17 31 04@2x

How to test it


const [major, minor, patch] = gitVersion;
public static ensureGitVersion(): void {
const [major, minor, patch] = GitVersionCompatibility.getGitVersion();
Copy link
Member

@octogonz octogonz Feb 23, 2024

Choose a reason for hiding this comment

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

What happens if Git is not installed at all (or cannot be found in the PATH)? We should have a professional looking message in that case.

@chengcyber chengcyber merged commit 79361b3 into main Feb 23, 2024
1 check passed
@chengcyber chengcyber deleted the feat-startup-banner branch February 23, 2024 19:32
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.

2 participants