-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: PR check status to show summary e.g. Plan: 1 to add, 0 to change, 1 to destroy #2983
feat: PR check status to show summary e.g. Plan: 1 to add, 0 to change, 1 to destroy #2983
Conversation
…-status feat: PR check status to show summary e.g. `Plan: 1 to add, 0 to change, 1 to destroy`
@@ -34,9 +34,6 @@ type CommitStatusUpdater interface { | |||
// UpdateCombinedCount updates the combined status to reflect the | |||
// numSuccess out of numTotal. | |||
UpdateCombinedCount(repo models.Repo, pull models.PullRequest, status models.CommitStatus, cmdName command.Name, numSuccess int, numTotal int) error | |||
// UpdateProject sets the commit status for the project represented by | |||
// ctx. | |||
UpdateProject(ctx command.ProjectContext, cmdName command.Name, status models.CommitStatus, url string) error |
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.
type StatusUpdater interface
has same impl and this is used only for test. so removed.
df936b4
to
8355e31
Compare
8355e31
to
c778576
Compare
@@ -48,8 +48,10 @@ type AsyncTFExec interface { | |||
|
|||
// StatusUpdater brings the interface from CommitStatusUpdater into this package | |||
// without causing circular imports. | |||
// | |||
//go:generate pegomock generate -m --package mocks -o mocks/mock_status_updater.go StatusUpdater | |||
type StatusUpdater interface { |
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.
Are there tests that we can add to runetime_test.go ?
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.
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.
@krrrr38 you make these changes look easy. Thank you so much for your impactful contributions!
@krrrr38 is this ready to merge? |
yes! |
Awesome! Merged :D. Thanks again! |
what
why
remain impl for #2699
test
references
Plan: 1 to add, 0 to change, 1 to destroy
#2699Plan Succeeded
showPlan: 1 to add, 0 to change, 1 to destroy
#2625