-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.0.0 - Fixed some basic issues and added new command
- Loading branch information
1 parent
5dd01e0
commit a5de58d
Showing
5 changed files
with
78 additions
and
35 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 |
---|---|---|
|
@@ -24,9 +24,33 @@ The extension can be configured through the following settings: | |
The extension will get the configuration when its first activated. If you change the configuration, you need to reload the window to make it work. | ||
|
||
- `jiraCommitMessage.baseURL`: The URL of your JIRA instance, e.g. `https://mycompany.atlassian.net`. | ||
- `jiraCommitMessage.username`: The email/username to use for the JIRA API. | ||
- `jiraCommitMessage.username`: The email to use for the JIRA API, e.g `[email protected]` | ||
- `jiraCommitMessage.token`: The API token to use for the JIRA API. You can generate one in your JIRA profile settings. (See [here](https://confluence.atlassian.com/cloud/api-tokens-938839638.html) for more information.) | ||
|
||
## Note | ||
If you want to clear the token or username or password, run the command - `JIRA Commit Message: Clear Stored data` from the command palette. This will clear the token and other creds. | ||
|
||
You can start over again by running the command - `JIRA Commit Message: Enter User Details for the JIRA API` from the command palette.palette | ||
|
||
## Available Commands | ||
The following are the available commands for this extension. | ||
```json | ||
"commands": [ | ||
{ | ||
"command": "jira-git-commit-helper.createCommitMessage", | ||
"title": "JIRA Commit Message: Create Commit Message" | ||
}, | ||
{ | ||
"command": "jira-git-commit-helper.resetToken", | ||
"title": "JIRA Commit Message: Clear Stored data" | ||
}, | ||
{ | ||
"command": "jira-git-commit-helper.setUserDetails", | ||
"title": "JIRA Commit Message: Enter User Details for the JIRA API" | ||
} | ||
] | ||
``` | ||
|
||
## Usage | ||
|
||
When creating a new Git commit, the extension will automatically retrieve the details of the currently assigned JIRA ticket and insert them into the commit message template. The commit message will then be pre-filled with the JIRA ticket information, which can be edited as necessary. | ||
|
@@ -36,6 +60,8 @@ To activate the extension, open the command palette (Ctrl+Shift+P) and select "J | |
- Select the type of commit you are making from the list of available commit types. | ||
- Enter a commit message and press Enter to create the commit. | ||
|
||
> Note: This extension does not store any of your data locally. It is stored within VSCode Extension Cache and hence you can never access the username, token or URL directly. It can be set and unset only via the available commands. | ||
## Contributing | ||
|
||
If you wish to contribute to this extension, please follow the steps below: | ||
|
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 |
---|---|---|
|
@@ -3,10 +3,10 @@ const CONSTANTS = { | |
{ label: '$(add) Enter ticket number manually', action: 'enter-manually' }, | ||
{ label: '$(refresh) Fetch latest tickets', action: 'refresh' }, | ||
], | ||
types: ['🐞 Bug Fix', '⏫ Updates', '🔧 Optimization', '🧹 Clean up'], | ||
url: (baseURL) => `${baseURL}/rest/api/3/search/?jql=updated >= -20d AND project = CNTO AND assignee in (currentUser()) order by updated DESC&maxResults=15`, | ||
types: ['🐞 Bug Fix', '⏫ Updates', '🔧 Optimization', '🧹 Clean up', '📋 Chore', '⚪ Temp', '📒 Documentation', '🔂 Revert'], | ||
url: (baseURL) => `${baseURL.replace(/\/$/, '')}/rest/api/3/search/?jql=updated >= -20d AND project = CNTO AND assignee in (currentUser()) order by updated DESC&maxResults=15`, | ||
strings: { | ||
usernamePlaceholder: 'Enter your JIRA username/email', | ||
usernamePlaceholder: 'Enter your JIRA email (eg: [email protected])', | ||
tokenPlaceholder: 'Enter your JIRA API token', | ||
ticketPlaceholder: 'Select the ticket', | ||
manualTicketPlaceholder: 'Enter ticket number manually (e.g. CNTO-1234)', | ||
|