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: I29ce3bc51e0ef2ee8012c0ad2547ff2dd0c56912
  • Loading branch information
hickford committed Nov 15, 2022
1 parent db5a468 commit 565d01c
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 565d01c

Please sign in to comment.