mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-01-13 21:21:03 +00:00
feat: open pr
This commit is contained in:
parent
3c5c66d029
commit
e0b1e2221d
3 changed files with 40 additions and 2 deletions
|
|
@ -232,7 +232,21 @@ func reconcileReleasePR(ctx context.Context, forge rp.Forge, changesets []rp.Cha
|
|||
logger.InfoContext(ctx, "file content is already up-to-date in remote branch, skipping push")
|
||||
}
|
||||
|
||||
// TODO Open PR
|
||||
// Open/Update PR
|
||||
if pr == nil {
|
||||
pr = &rp.ReleasePullRequest{
|
||||
Title: releaseCommitMessage,
|
||||
Description: "TODO",
|
||||
Labels: nil,
|
||||
Head: rpBranch,
|
||||
}
|
||||
|
||||
pr, err = forge.CreatePullRequest(ctx, pr)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
logger.InfoContext(ctx, "opened pull request", "pr.title", pr.Title, "pr.id", pr.ID)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue