Add guard around new type requirements for 'tagger' field on octokit.git.createTag
Signed-off-by: Erik Engervall <erik.engervall@gmail.com>
This commit is contained in:
@@ -336,11 +336,15 @@ export class GitReleaseApiClient implements GitReleaseApi {
|
||||
tag,
|
||||
object,
|
||||
type: 'commit',
|
||||
tagger: {
|
||||
date: new Date().toISOString(),
|
||||
email: taggerEmail,
|
||||
name: taggerName,
|
||||
},
|
||||
...(taggerEmail
|
||||
? {
|
||||
tagger: {
|
||||
date: new Date().toISOString(),
|
||||
email: taggerEmail,
|
||||
name: taggerName,
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
});
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user