This commit is contained in:
mitchellhamilton
2020-02-14 11:09:50 +11:00
2 changed files with 10 additions and 5 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+9 -4
View File
@@ -225,11 +225,16 @@ ${
.join("\n ")
);
})();
const title = `ci(changeset): generate PR with changelog &${
const prTitle = `Version Packages${
isInPreMode ? ` (${preState.tag})` : ""
}`;
const commitMsg = `ci(changeset): generate PR with changelog &${
isInPreMode ? ` (${preState.tag})` : ""
} version updates`;
await exec("git", ["add", "."]);
await exec("git", ["commit", "-m", title]);
await exec("git", ["commit", "-m", commitMsg]);
await exec("git", ["push", "origin", versionBranch, "--force"]);
let searchResult = await searchResultPromise;
console.log(JSON.stringify(searchResult.data, null, 2));
@@ -238,14 +243,14 @@ ${
await octokit.pulls.create({
base: branch,
head: versionBranch,
title,
title: prTitle,
body: await prBodyPromise,
...github.context.repo
});
} else {
octokit.pulls.update({
pull_number: searchResult.data.items[0].number,
title,
title: prTitle,
body: await prBodyPromise,
...github.context.repo
});