Add better error messages when determining merge-base by aeisenberg · Pull Request #1860 · github/codeql-action (original) (raw)

@aeisenberg

Avoid printing scary error messages to console when the current directory is not a git repo. Instead provide a better reason for the git failure and continue on.

Fixes #1162.

Merge / deployment checklist

@aeisenberg

Avoid printing scary error messages to console when the current directory is not a git repo. Instead provide a better reason for the git failure and continue on.

[github-advanced-security[bot]](/apps/github-advanced-security)

henrymercer

Choose a reason for hiding this comment

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

Looks good overall, some minor suggestions. Also I've been suggesting we add changelog notes to more of our PRs and I think this one would benefit from one too.

@aeisenberg

@aeisenberg

henrymercer

@aeisenberg

henrymercer

Choose a reason for hiding this comment

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

Nice, thanks for addressing this bit of customer feedback!

@aeisenberg aeisenberg deleted the aeisenberg/better-error-messages branch

August 29, 2023 20:51

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})