feat: support base commit-based checks#210
Merged
daveshanley merged 1 commit intopb33f:mainfrom Jun 12, 2025
lrstanley:feature/base-commit
Merged
feat: support base commit-based checks#210daveshanley merged 1 commit intopb33f:mainfrom lrstanley:feature/base-commit
daveshanley merged 1 commit intopb33f:mainfrom
lrstanley:feature/base-commit
Conversation
Signed-off-by: Liam Stanley <liam@liam.sh>
Member
|
The codebase is really a demo, it's not a production quality tool. It's a sketch so the codebase is pretty horrible. - which is why it's not made it to a feature release yet. Most of the tool (except for the TUI) has been rebuilt by the doctor and will be backfed into this tool to bring it in line. |
daveshanley
approved these changes
Jun 12, 2025
Member
daveshanley
left a comment
There was a problem hiding this comment.
LGTM, thank you for pushing through the poor code quality. It needs a complete re-do.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes in this commit
Adds a
--base-commitflag, which is used as the oldest commit to compare against. This is particularly useful in a PR situation, where you want to compare against changes that occurred in the PR only.Note that it doesn't check the differences inside of the base commit, rather, the base commit is considered the "start" of the history.
Examples:
This is a simpler implementation of something like what golangci-lint does, with
--new-from-rev. With the Git-directory based approach, you could probably also use the ref name, not just the commit.Reviewer Notes
openapi-changes summarysummarytoo, I just noticed it withsummary.openapi-changes/cmd/summary.go
Line 95 in 2e429fe
, okis used, all other selects in that block will never be checked.