Move some issue methods as functions (#19255)
* Move some issue methods as functions * Fix bug
This commit is contained in:
parent
bd97736b9c
commit
74731c3a5a
19 changed files with 63 additions and 84 deletions
|
@ -420,7 +420,7 @@ func (pr *PullRequest) SetMerged() (bool, error) {
|
|||
return false, err
|
||||
}
|
||||
|
||||
if _, err := pr.Issue.changeStatus(ctx, pr.Merger, true, true); err != nil {
|
||||
if _, err := changeIssueStatus(ctx, pr.Issue, pr.Merger, true, true); err != nil {
|
||||
return false, fmt.Errorf("Issue.changeStatus: %v", err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue