Skip to content

Commit

Permalink
fix: remove the constraint on branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
fleboulch committed May 30, 2024
1 parent 876569b commit 95d703c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/review/commands/share/hookHandlers/pushHookHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ export async function pushHookHandler(
return;
}

const branchName = ref.split('/').pop() as string;

const mergeRequests =
(await fetchMergeRequestsByBranchName(project_id, branchName)).filter(
(await fetchMergeRequestsByBranchName(project_id, ref)).filter(
({ merge_status }) => merge_status !== 'merged'
) || [];

Expand Down

0 comments on commit 95d703c

Please sign in to comment.