Skip to content

Commit

Permalink
v 0.21.0
Browse files Browse the repository at this point in the history
Features

- copy Jira Issue remote url to clipboard

Bug Fixes

- minor fixes
  • Loading branch information
gioboa committed Aug 10, 2020
1 parent f77ba44 commit c05907a
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 19 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 0.21.0

### Features

- copy Jira Issue remote url to clipboard

### Bug Fixes

- minor fixes

## 0.20.0

### Features
Expand Down
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
- Change Jira issue status
- Change Jira issue assignee
- Add comment to Jira issue
- Copy to clipboard Jira Key+Summary
- Copy to clipboard Jira issue Key+Summary
- Copy to clipboard Jira issue remote url
- Checkout or create git branch
- [Set current working project](#working-project)
- [Set current working issue](#working-issue)
Expand All @@ -39,7 +40,10 @@
**jira-plugin** is an open source extension.<br>While being free and open source, if you find it useful, please consider supporting it by donating.<br>**Thanks!**

[[Become a backer](https://opencollective.com/jira-plugin#backers)]
<a href="https://opencollective.com/jira-plugin#backers" target="_blank"><img src="https://opencollective.com/jira-plugin/backers.svg?width=890"></a>
<a href="https://opencollective.com/jira-plugin#backers" target="_blank"><img src="https://opencollective.com/jira-plugin/backers.svg?width=890"></a><br><br>
Your logo will show up here with a link to your website.
<br><br>
[<img src="https://blog.wan-ifra.org/sites/default/files/imagecache/default_col_4/field_blog_entry_image/dumont_logo4_0.jpg" width="160">](https://www.dumont.de/)

## Installation

Expand Down Expand Up @@ -184,8 +188,10 @@ values:<br>
With this command you can change an issue assignee.<br><br>
- **Change issue status**<br>
With this command you can change an issue status.<br><br>
- **Copy Jira Key+Summary**<br>
With this command you can copy to clipboard Jira Key+Summary.<br><br>
- **Copy Jira issue Key+Summary**<br>
With this command you can copy to clipboard Jira issue Key+Summary.<br><br>
- **Copy Jira issue remote url**<br>
With this command you can copy to clipboard Jira issue remote url.<br><br>
- **Checkout or create git branch**<br>
Whit this command you can manage git from explorer.<br><br>

Expand Down Expand Up @@ -217,8 +223,8 @@ If you want to file a bug, contribute some code or improve documentation, read u

## [Contributors](https://github.com/gioboa/jira-plugin/graphs/contributors)

| [<img src="https://avatars2.githubusercontent.com/u/35845425?v=4" width="50px;" /><br /><sub><b>Giorgio Boa</b></sub>](https://github.com/gioboa) | [<img src="https://avatars1.githubusercontent.com/u/4991612?v=4" width="50px;" /><br /><sub><b>jumpkick</b></sub>](https://github.com/jumpkick)<br /> | [<img src="https://avatars3.githubusercontent.com/u/25907722?v=4" width="50px;" /><br /><sub><b>tiago-pullup</b></sub>](https://github.com/tiago-pullup)<br /> | [<img src="https://avatars1.githubusercontent.com/u/29225316?v=4" width="50px;" /><br /><sub><b>MXM-7</b></sub>](https://github.com/MXM-7)<br /> | [<img src="https://avatars0.githubusercontent.com/u/40208329?v=4" width="50px;" /><br /><sub><b>Diogo Paschoal</b></sub>](https://github.com/diogogeru)<br /> | [<img src="https://avatars3.githubusercontent.com/u/7826229?s=400&v=4" width="50px;" /><br /><sub><b>Ian Mackie</b></sub>](https://github.com/Kaffiend)<br /> | [<img src="https://avatars3.githubusercontent.com/u/2177810?s=400&v=4" width="50px;" /><br/><sub><b>Roman Ostolosh</b></sub>](https://github.com/knicefire)<br/> | [<img src="https://avatars1.githubusercontent.com/u/19175915?s=400&v=4" width="50px;" /><br/><sub><b>Keith Turley</b></sub>](https://github.com/keithturley)<br/> |
| :-----------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [<img src="https://avatars2.githubusercontent.com/u/35845425?v=4" width="50px;" /><br /><sub><b>Giorgio Boa</b></sub>](https://github.com/gioboa) | [<img src="https://avatars1.githubusercontent.com/u/4991612?v=4" width="50px;" /><br /><sub><b>jumpkick</b></sub>](https://github.com/jumpkick)<br /> | [<img src="https://avatars3.githubusercontent.com/u/25907722?v=4" width="50px;" /><br /><sub><b>tiago-pullup</b></sub>](https://github.com/tiago-pullup)<br /> | [<img src="https://avatars1.githubusercontent.com/u/29225316?v=4" width="50px;" /><br /><sub><b>MXM-7</b></sub>](https://github.com/MXM-7)<br /> | [<img src="https://avatars0.githubusercontent.com/u/40208329?v=4" width="50px;" /><br /><sub><b>Diogo Paschoal</b></sub>](https://github.com/diogogeru)<br /> | [<img src="https://avatars3.githubusercontent.com/u/7826229?s=400&v=4" width="50px;" /><br /><sub><b>Ian Mackie</b></sub>](https://github.com/Kaffiend)<br /> | [<img src="https://avatars3.githubusercontent.com/u/2177810?s=400&v=4" width="50px;" /><br/><sub><b>Roman Ostolosh</b></sub>](https://github.com/knicefire)<br/> | [<img src="https://avatars1.githubusercontent.com/u/19175915?s=400&v=4" width="50px;" /><br/><sub><b>Keith Turley</b></sub>](https://github.com/keithturley)<br/> | [<img src="https://avatars3.githubusercontent.com/u/4190560?s=400&v=4" width="50px;" /><br/><sub><b>jjongman</b></sub>](https://github.com/jjongman)<br/> |
| :-----------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |


## License
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 14 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jira-plugin",
"displayName": "Jira Plugin",
"description": "Manage your on-premises/cloud Jira in vscode",
"version": "0.20.0",
"version": "0.21.0",
"publisher": "gioboa",
"icon": "images/icons/icon.png",
"galleryBanner": {
Expand Down Expand Up @@ -280,8 +280,13 @@
"category": "Jira-plugin"
},
{
"command": "jira-plugin.copyJiraSummary",
"title": "Copy Jira Key+Summary",
"command": "jira-plugin.copyIssueKeySummary",
"title": "Copy Jira issue Key+Summary",
"category": "Jira-plugin"
},
{
"command": "jira-plugin.copyIssueRemoteUrl",
"title": "Copy Jira issue remote url",
"category": "Jira-plugin"
},
{
Expand Down Expand Up @@ -398,7 +403,12 @@
"when": "view == issuesExplorer && viewItem == IssueItem"
},
{
"command": "jira-plugin.copyJiraSummary",
"command": "jira-plugin.copyIssueKeySummary",
"group": "1_issue",
"when": "view == issuesExplorer && viewItem == IssueItem"
},
{
"command": "jira-plugin.copyIssueRemoteUrl",
"group": "1_issue",
"when": "view == issuesExplorer && viewItem == IssueItem"
},
Expand Down
3 changes: 2 additions & 1 deletion src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ export default {
registerCommand('jira-plugin.issueAddComment', (issue: IssueItem) => issueAddComment(issue, false)),
registerCommand('jira-plugin.issueAddInternalComment', (issue: IssueItem) => issueAddComment(issue, true)),
registerCommand('jira-plugin.openIssue', openIssue),
registerCommand('jira-plugin.copyJiraSummary', utilities.copyToClipboard),
registerCommand('jira-plugin.copyIssueKeySummary', utilities.copyIssueKeySummary),
registerCommand('jira-plugin.copyIssueRemoteUrl', utilities.copyIssueRemoteUrl),

// auxilary commands
registerCommand('jira-plugin.openGitHubRepo', openGitHubRepo),
Expand Down
2 changes: 1 addition & 1 deletion src/services/status-bar.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default class StatusBarService {
if (configuration.get(CONFIG.TRACKING_TIME_MODE) === TRACKING_TIME_MODE.HYBRID) {
// If we are coming back from an away period catch up our logging time
// If the away time was > awayTimeout, workingIssue.awayTime will be -1, so we won't log the away time.
if (store.state.workingIssue.awayTime && store.state.workingIssue.awayTime > 0) {
if (store.state.workingIssue.awayTime && store.state.workingIssue.awayTime > 0 && !store.state.workingIssue.stopped) {
store.state.workingIssue.trackingTime += store.state.workingIssue.awayTime;
}
// Clear the away timer
Expand Down
15 changes: 12 additions & 3 deletions src/services/utilities.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,18 @@ export default class UtilitiesService {
}
}

copyToClipboard(issue: IssueItem) {
if (issue) {
vscode.env.clipboard.writeText(issue.label || '');
copyIssueKeySummary(issueItem: IssueItem) {
if (issueItem) {
vscode.env.clipboard.writeText(issueItem.label || '');
vscode.window.showInformationMessage('Jira Plugin - Copied to clipboard');
} else {
logger.printErrorMessageInOutputAndShowAlert('Use this command from Jira Plugin EXPLORER');
}
}

copyIssueRemoteUrl(issueItem: IssueItem) {
if (issueItem) {
vscode.env.clipboard.writeText(`${configuration.get(CONFIG.BASE_URL)}/browse/${issueItem.issue.key}` || '');
vscode.window.showInformationMessage('Jira Plugin - Copied to clipboard');
} else {
logger.printErrorMessageInOutputAndShowAlert('Use this command from Jira Plugin EXPLORER');
Expand Down

0 comments on commit c05907a

Please sign in to comment.