Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Ji Sang Seo committed Feb 11, 2024
1 parent bbc2547 commit 5a9d1a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/git.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function fetch() {
export async function merge(branch) {
const mergeResult = git("merge", branch);

if (result.status !== 0) {
if (mergeResult.status !== 0) {
throw new Error("Failed to merge");
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/task/pr.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function pullRequest() {
const currentBranchName = git.getCurrentBranchName();

const task = Object.values(taskCollection).find(
(task) => task.title === currentBranchName
(task) => git.toBranchName(task.title) === currentBranchName
);

let baseBranch = task.baseBranch;
Expand All @@ -47,6 +47,4 @@ export async function pullRequest() {

// create pull request
await git.pullRequest(baseBranch, task.title);

await git.pullRequest(baseBranch, title);
}

0 comments on commit 5a9d1a0

Please sign in to comment.