From 22109dfbc4ad9b9a7b3b937e0770ae0980ac49d2 Mon Sep 17 00:00:00 2001 From: Srijit S Madhavan Date: Mon, 23 Dec 2024 15:00:49 +0530 Subject: [PATCH] Fix: remove symbols from branch's slug name (#64) * fix: remove symbols from branch slug name * fix: removed props to --- src/api/session.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/session.js b/src/api/session.js index c022ecc..141e136 100644 --- a/src/api/session.js +++ b/src/api/session.js @@ -38,7 +38,10 @@ export async function sessionsList( export async function createSession(octokit, githubConfig, prName) { const { username: owner, repo } = githubConfig; const username = (await octokit.rest.users.getAuthenticated()).data.login; - const slugifiedPrName = slugify(prName, { lower: true }); + const slugifiedPrName = slugify(prName, { + lower: true, + strict: true, + }); const forkBranchName = `${username}/${slugifiedPrName}`; try {