Skip to content

Commit

Permalink
fix branch detection
Browse files Browse the repository at this point in the history
  • Loading branch information
juandjara committed Oct 16, 2023
1 parent e9d3563 commit f3acb3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/projects/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const action: ActionFunction = async ({ request }) => {
errors.push(['repo', 'This field is required'])
}

const branchIsValid = await validateBranch(token, repo, branch)
const branchIsValid = await validateBranch(token, `${org}/${repo}`, branch)
if (!branchIsValid) {
errors.push(['branch', `Branch "${branch}" does not exist`])
}
Expand Down

0 comments on commit f3acb3b

Please sign in to comment.