-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
143 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
## 1.2.4 (2023-08-09) | ||
# 1.3.0 (2023-08-09) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **project:** Updated dependencies due to security issues ([49a1a65](https://github.com/gitex-flow/gitex-flow-vscode/commits/49a1a65b46bddab09a578ff030e8abc7ac4542af)) | ||
* **config:** Allowed to configure the version prefix on gitex flow init ([bd8f837](https://github.com/gitex-flow/gitex-flow-vscode/commits/bd8f8372180acbe1b8f5c41d2ad65d652c7bc1d5)), closes [#11](https://github.com/gitex-flow/gitex-flow-vscode/issues/11) | ||
|
||
|
||
### Features | ||
|
||
* **vscode-ex:** Integrated alpha and beta prerelease functionality ([e85e07e](https://github.com/gitex-flow/gitex-flow-vscode/commits/e85e07e72c60588b53b1c0aa4329a5b819b5fdb8)), closes [#13](https://github.com/gitex-flow/gitex-flow-vscode/issues/13) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { GitFlowTag, GitFlowTagType, ProjectConfig } from 'gitex-flow'; | ||
import * as vscode from 'vscode'; | ||
|
||
/** | ||
* This class extending a gflow tag with some helpful functionality. | ||
*/ | ||
export class GFlowExtTag implements GitFlowTag { | ||
private gitFlowTag: GitFlowTag; | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public get type(): GitFlowTagType { | ||
return this.gitFlowTag.type; | ||
} | ||
|
||
/** | ||
* Initializes a new instance of this class. | ||
* | ||
* @param gitFlowTag - Git flow tag to be wrapped. | ||
*/ | ||
constructor(gitFlowTag: GitFlowTag) { | ||
this.gitFlowTag = gitFlowTag; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public list(withPrefix?: boolean | undefined): Promise<string[]> { | ||
return this.gitFlowTag.list(withPrefix); | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public async start(branchName?: string): Promise<string> { | ||
let tagName = ''; | ||
try { | ||
tagName = await this.gitFlowTag.start(branchName); | ||
vscode.window.showInformationMessage(`Created ${this.type} tag "${tagName}" on branch "${branchName}"`); | ||
} catch (error) { | ||
vscode.window.showErrorMessage(`Failed to create ${this.type} tag on branch "${branchName}". ${error}`); | ||
} | ||
return tagName; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public generateTagName(): Promise<string | undefined> { | ||
return this.gitFlowTag.generateTagName(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters