Skip to content

Commit b3836f8

Browse files
authored
Fix bug where causing double commits (#281)
This commit fixes a bug where the pull request manager would double commit when evaluating using git or the go implementation. Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
1 parent d3281db commit b3836f8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/repo/clone.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ func (c *Clone) Commit(opts *options.CommitOptions) error {
168168
}
169169
return err
170170
}
171+
return nil
171172
}
172173
return c.puregoCommit(opts)
173174
}

pkg/repo/pullrequest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func (prm *PullRequestManager) PullRequestFileList(
107107
}
108108

109109
if err := prm.impl.CommitChanges(opts, clone); err != nil {
110-
return nil, fmt.Errorf("committing changes to remote: %w", err)
110+
return nil, fmt.Errorf("committing changes: %w", err)
111111
}
112112

113113
if err := prm.impl.PushFeatureBranch(&prm.Options, clone); err != nil {

0 commit comments

Comments
 (0)