-
Notifications
You must be signed in to change notification settings - Fork 328
Build: GitInfo function to build a raw github content URL
#2910
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
Conversation
|
Depends on #2908 |
0d5f0c2 to
ece71c2
Compare
| } | ||
| else "" | ||
| val gitInfo = GitInfo(gitHead, gitDescribe) | ||
| val rawLinkRef = if (isRelease) gitDescribe else "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.
nit: why not use gitDescribe for non-releases? HEAD in GH may be off with respect to the current state of the code during build 🤔
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.
it potentially says 'abcdef-dirty' (not resolvable) - and the commit may not be in the apache/polaris repo
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.
Does it matter that the commit is not in GH for not released code?
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.
Yea - the link would be wrong and put in some relevant fields.
No description provided.