Skip to content

Commit

Permalink
Fix: remove symbols from branch's slug name (#64)
Browse files Browse the repository at this point in the history
* fix: remove symbols from branch slug name

* fix: removed  props to
  • Loading branch information
srijitcoder authored Dec 23, 2024
1 parent 2683fec commit 22109df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 22109df

Please sign in to comment.