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
Update logging in build-tools and add commit date support in GitRepo #11692
Conversation
| * @returns The commit date of the ref. | ||
| */ | ||
| public async getCommitDate(gitRef: string) { | ||
| const result = (await this.exec(`show -s --format=%cI "${gitRef}"`, `get commit date ${gitRef}`)).trim(); |
Check warning
Code scanning / CodeQL
Unsafe shell command constructed from library input
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.
This is pretty cool of Github 😄
c0e6824
to
a3fd63e
Compare
a3fd63e
to
d002f6f
Compare
|
Thanks for the review, @alexvy86 ! |
|
This commit is queued for merging with the |
…icrosoft#11692) This change primarily updates the legacy build-tools to better use a unified logging infrastructure that was added in an earlier PR. It also adds the ability to get a commit date from a git ref, which will be used in an upcoming PR to build release reports.
Follow up to #11692. Adds APIs for: - Generating branch names. - Creating release and dep bump branches. - Checking npm for package updates. - Checking if a particular version has been released. - Getting all versions and their dates based on the git tag. - Sorting versions based on date and semver version. These APIs will be used heavily in the `release` and `release report` commands (future changes).
This change primarily updates the legacy build-tools to better use a unified logging infrastructure that was added in an earlier PR. It also adds the ability to get a commit date from a git ref, which will be used in an upcoming PR to build release reports.