tagName支持v前缀
This commit is contained in:
parent
26808d0b61
commit
506c141808
@ -49,7 +49,8 @@ namespace FastGithub.Upgrade
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ProductionVersion GetProductionVersion()
|
public ProductionVersion GetProductionVersion()
|
||||||
{
|
{
|
||||||
return ProductionVersion.Parse(this.TagName);
|
var version = this.TagName.TrimStart('v', 'V');
|
||||||
|
return ProductionVersion.Parse(version);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user