We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3409577 commit 9437b4dCopy full SHA for 9437b4d
src/index.js
@@ -96,12 +96,7 @@ export default class CommitManager {
96
if (this.branch) {
97
return
98
}
99
- let branchId
100
- if (context.sha) {
101
- branchId = context.sha.slice(0, 8)
102
- } else {
103
- branchId = nanoid("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 8)
104
- }
+ const branchId = nanoid("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 8)
105
const branchPrefix = await resolveAny(this.options.branchPrefix, this)
106
this.branch = `${branchPrefix}${branchId}`
107
await exec("git", ["config", "user.email", "action@github.com"])
@@ -189,4 +184,4 @@ export default class CommitManager {
189
184
190
185
191
186
192
-}
187
+}
0 commit comments