File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,12 @@ import {context, GitHub} from "@actions/github"
66import chalk from "chalk"
77import getBooleanActionInput from "get-boolean-action-input"
88import isGitRepoDirty from "is-git-repo-dirty"
9- import { nanoid } from "nanoid"
9+ import { customAlphabet } from "nanoid"
1010import resolveAny from "resolve-any"
1111import zahl from "zahl"
1212
13+ const nanoid = customAlphabet ( "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" , 8 )
14+
1315/**
1416 * @typedef {Object } Options
1517 * @prop {* } commitMessage If a function is given, it will be called as `async function(commitManager)`
@@ -96,7 +98,7 @@ export default class CommitManager {
9698 if ( this . branch ) {
9799 return
98100 }
99- const branchId = nanoid ( "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" , 8 )
101+ const branchId = nanoid ( )
100102 const branchPrefix = await resolveAny ( this . options . branchPrefix , this )
101103 this . branch = `${ branchPrefix } ${ branchId } `
102104 await exec ( "git" , [ "config" , "user.email" , "action@github.com" ] )
You can’t perform that action at this time.
0 commit comments