Skip to content

Commit

Permalink
cmd/gerritbot: make sure to update when draft status changes
Browse files Browse the repository at this point in the history
Updates golang/go#30244

Change-Id: I670d4444ffbe29a079fb4a933e74c34c7c5de026
GitHub-Last-Rev: 565d01c
GitHub-Pull-Request: #48
Reviewed-on: https://go-review.googlesource.com/c/build/+/451075
Run-TryBot: Dmitri Shuralyov <[email protected]>
Auto-Submit: Dmitri Shuralyov <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Matthew Hickford <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>
  • Loading branch information
hickford authored and gopherbot committed Nov 16, 2022
1 parent db5a468 commit 2f9ee95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gerritbot/gerritbot.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ func (b *bot) processPullRequest(ctx context.Context, pr *github.PullRequest) er
return fmt.Errorf("syncGerritCommentsToGitHub: %v", err)
}

if cmsg == cl.Commit.Msg {
if cmsg == cl.Commit.Msg && pr.GetDraft() == cl.WorkInProgress() {
log.Printf("Change https://go-review.googlesource.com/q/%s is up to date; nothing to do.",
cl.ChangeID())
return nil
Expand Down

0 comments on commit 2f9ee95

Please sign in to comment.