Match commit message to PR title (#13)

This commit is contained in:
Mateusz Burzyński
2019-12-24 11:44:09 +10:00
committed by Mitchell Hamilton
parent 1f00d9074c
commit e9239e0d25
2 changed files with 5 additions and 4 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+4 -3
View File
@@ -224,8 +224,9 @@ ${
.join("\n ")
);
})();
const title = `Version Packages${isInPreMode ? ` (${preState.tag})` : ""}`
await exec("git", ["add", "."]);
await exec("git", ["commit", "-m", "Version Packages"]);
await exec("git", ["commit", "-m", title]);
await exec("git", ["push", "origin", versionBranch, "--force"]);
let searchResult = await searchResultPromise;
console.log(JSON.stringify(searchResult.data, null, 2));
@@ -234,14 +235,14 @@ ${
await octokit.pulls.create({
base: branch,
head: versionBranch,
title: `Version Packages${isInPreMode ? ` (${preState.tag})` : ""}`,
title,
body: await prBodyPromise,
...github.context.repo
});
} else {
octokit.pulls.update({
pull_number: searchResult.data.items[0].number,
title: `Version Packages${isInPreMode ? ` (${preState.tag})` : ""}`,
title,
body: await prBodyPromise,
...github.context.repo
});