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
@@ -228,13 +231,13 @@ export async function runVersion({
228
231
hasPublishScript
229
232
? 'the packages will be published to npm automatically'
230
233
: 'publish to npm yourself or [setup this action to publish automatically](https://github.com/un-ts/changesets-gitlab#with-publishing)'
231
-
}. If you're not ready to do a release yet, that's fine, whenever you add more changesets to ${branch}, this MR will be updated.
234
+
}. If you're not ready to do a release yet, that's fine, whenever you add more changesets to ${currentBranch}, this MR will be updated.
232
235
${
233
236
preState
234
237
? `
235
238
⚠️⚠️⚠️⚠️⚠️⚠️
236
239
237
-
\`${branch}\` is currently in **pre mode** so this branch has prereleases rather than normal releases. If you want to exit prereleases, run \`changeset pre exit\` on \`${branch}\`.
240
+
\`${currentBranch}\` is currently in **pre mode** so this branch has prereleases rather than normal releases. If you want to exit prereleases, run \`changeset pre exit\` on \`${currentBranch}\`.
238
241
239
242
⚠️⚠️⚠️⚠️⚠️⚠️
240
243
`
@@ -286,27 +289,29 @@ ${
286
289
projectId: context.projectId,
287
290
state: 'opened',
288
291
sourceBranch: versionBranch,
289
-
target_branch: branch,
292
+
target_branch: mrTargetBranch,
290
293
maxPages: 1,
291
294
perPage: 1,
292
295
})
293
296
console.log(JSON.stringify(searchResult,null,2))
294
297
if(searchResult.length===0){
295
-
console.log('creating merge request')
298
+
console.log(
299
+
`creating merge request from ${versionBranch} to ${mrTargetBranch}.`,
300
+
)
296
301
awaitapi.MergeRequests.create(
297
302
context.projectId,
298
303
versionBranch,
299
-
branch,
304
+
mrTargetBranch,
300
305
finalMrTitle,
301
306
{
302
307
description: awaitmrBodyPromise,
303
308
},
304
309
)
305
310
}else{
311
+
console.log(`updating found merge request !${searchResult[0].iid}`)
0 commit comments