You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/cli/alpha/internal/update/update.go
+135Lines changed: 135 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,12 @@ type Update struct {
71
71
// Push, when true, pushes the OutputBranch to the "origin" remote after the update completes.
72
72
Pushbool
73
73
74
+
// OpenGhIssue, when true, automatically creates a GitHub issue after the update
75
+
// completes. The issue includes a pre-filled checklist and a compare link from
76
+
// the base branch (--from-branch) to the output branch. This requires the GitHub
77
+
// CLI (`gh`) to be installed and authenticated in the local environment.
78
+
OpenGhIssuebool
79
+
74
80
// Temporary branches created during the update process. These are internal to the run
75
81
// and are surfaced for transparency/debugging:
76
82
// - AncestorBranch: clean scaffold generated from FromVersion
@@ -83,6 +89,73 @@ type Update struct {
83
89
MergeBranchstring
84
90
}
85
91
92
+
constissueTitleTmpl="[Action Required] Upgrade the Scaffold: %[2]s -> %[1]s"
93
+
94
+
//nolint:lll
95
+
constissueBodyTmpl=`## Description
96
+
97
+
Upgrade your project to use the latest scaffold changes introduced in Kubebuilder [%[1]s](https://github.com/kubernetes-sigs/kubebuilder/releases/tag/%[1]s).
98
+
99
+
See the release notes from [%[3]s](https://github.com/kubernetes-sigs/kubebuilder/releases/tag/%[3]s) to [%[1]s](https://github.com/kubernetes-sigs/kubebuilder/releases/tag/%[1]s) for details about the changes included in this upgrade.
100
+
101
+
## What to do
102
+
103
+
A scheduled workflow already attempted this upgrade and created the branch %[4]s to help you in this process.
104
+
105
+
Create a Pull Request using the URL below to review the changes:
Upgrade your project to use the latest scaffold changes introduced in Kubebuilder [%[1]s](https://github.com/kubernetes-sigs/kubebuilder/releases/tag/%[1]s).
122
+
123
+
See the release notes from [%[3]s](https://github.com/kubernetes-sigs/kubebuilder/releases/tag/%[3]s) to [%[1]s](https://github.com/kubernetes-sigs/kubebuilder/releases/tag/%[1]s) for details about the changes included in this upgrade.
124
+
125
+
## What to do
126
+
127
+
A scheduled workflow already attempted this upgrade and created the branch (%[4]s) to help you in this process.
128
+
129
+
:warning: **Conflicts were detected during the merge.**
130
+
131
+
Create a Pull Request using the URL below to review the changes and resolve conflicts manually:
0 commit comments