mirror of https://github.com/laurent22/joplin.git
Tools: Fixed git-changelog
parent
a6ff60aa99
commit
a595b8f250
|
@ -18,6 +18,7 @@ enum Platform {
|
|||
Server = 'server',
|
||||
Cli = 'cli',
|
||||
PluginGenerator = 'plugin-generator',
|
||||
PluginRepoCli = 'plugin-repo-cli',
|
||||
}
|
||||
|
||||
enum PublishFormat {
|
||||
|
@ -84,6 +85,7 @@ function platformFromTag(tagName: string): Platform {
|
|||
if (tagName.indexOf('cli') === 0) return Platform.Cli;
|
||||
if (tagName.indexOf('server') === 0) return Platform.Server;
|
||||
if (tagName.indexOf('plugin-generator') === 0) return Platform.PluginGenerator;
|
||||
if (tagName.indexOf('plugin-repo-cli') === 0) return Platform.PluginRepoCli;
|
||||
throw new Error(`Could not determine platform from tag: "${tagName}"`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue