Skip to content

Commit c77fa14

Browse files
Merge pull request #6 from MohammedAbidNafi/fix/readme
Fix/readme
2 parents 9aa9824 + 37027c0 commit c77fa14

File tree

4 files changed

+121
-29
lines changed

4 files changed

+121
-29
lines changed

README.md

Lines changed: 95 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,95 @@
1-
# Gitwit
1+
# Gitwit: AI-Powered Git Commit Message Generator
2+
3+
Gitwit is a VS Code extension that uses the power of AI to generate meaningful and concise Git commit messages based on the changes you make in your repository. Save time, eliminate writer’s block, and maintain consistent commit history with Gitwit!
4+
5+
---
6+
7+
## Features
8+
9+
- **AI-Generated Commit Messages:** Automatically generate commit messages tailored to your code changes.
10+
- **Customizable Suggestions:** Edit and refine AI-generated suggestions directly within the extension.
11+
- **Seamless Git Integration:** Works seamlessly with your Git workflow.
12+
- **Clipboard Integration:** Generated messages are automatically copied to your clipboard for easy use.
13+
- **User-Friendly Interface:** Lightweight and easy-to-use UI integrated into VS Code.
14+
15+
---
16+
17+
## Installation
18+
19+
1. Open VS Code.
20+
2. Go to the Extensions view by clicking the Extensions icon in the Activity Bar on the side of the window or pressing `Ctrl+Shift+X` (Windows/Linux) or `Cmd+Shift+X` (Mac).
21+
3. Search for `GitWit`.
22+
4. Click **Install**.
23+
24+
Alternatively, download and install Gitwit from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=MohammedAbidNafi.gitwit).
25+
26+
---
27+
28+
## Setup
29+
30+
After installing Gitwit, run the following commands to set up the extension:
31+
32+
1. **Select AI Model:** Open the Command Palette (`Ctrl+Shift+P` or `Cmd+Shift+P`), type `GitWit: Select AI Model`, and press `Enter`.
33+
34+
2. **Enter API Key:** Open the Command Palette again, type `GitWit: Enter API Key`, and press `Enter`.
35+
36+
Supported models include:
37+
38+
- `gpt-4o`
39+
- `gpt-4o-mini`
40+
- `o1-preview`
41+
- `o1-mini`
42+
- `gpt-4-turbo`
43+
- `gpt-4`
44+
- `gpt-3.5-turbo`
45+
- `gemini-1.5-flash`
46+
- `gemini-1.5-pro`
47+
- `gemini-1.0-pro`
48+
49+
---
50+
51+
## Usage
52+
53+
1. **Make Changes:** Modify your code files as usual.
54+
2. **Stage Changes:** Stage your changes using Git (`git add` or the Source Control panel in VS Code).
55+
3. **Generate Commit Message:**
56+
- Open the Command Palette (`Ctrl+Shift+P` or `Cmd+Shift+P`).
57+
- Type `Gitwit: Generate Commit Message` and press `Enter`.
58+
- The generated commit message is automatically copied to your clipboard.
59+
4. **Commit Changes:** Paste the message into your Git commit command or the VS Code Source Control panel and commit your changes.
60+
61+
---
62+
63+
## Requirements
64+
65+
- API KEY from either OpenAI or Gemini
66+
- Active internet connection for AI-based functionality.
67+
- Git installed on your system.
68+
69+
---
70+
71+
## License
72+
73+
Gitwit is open-source and available under the [GPL-3.0 License](https://www.gnu.org/licenses/gpl-3.0.html).
74+
75+
---
76+
77+
## Contributing
78+
79+
Contributions are welcome! If you encounter a bug, have a feature request, or want to contribute code:
80+
81+
1. Fork the repository.
82+
2. Create a new branch for your changes.
83+
3. Submit a pull request.
84+
85+
---
86+
87+
## Support
88+
89+
If you have questions or need help, feel free to open an issue on the [GitHub repository](https://github.com/MohammedAbidNafi/GitWit).
90+
91+
---
92+
93+
## Acknowledgments
94+
95+
Thanks to OpenAI and Gemini for providing the AI models that power Gitwit and to the developers who contributed to this project. Let’s make committing easier and smarter!

bun.lockb

206 KB
Binary file not shown.

package.json

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,39 @@
11
{
22
"name": "gitwit",
3-
"displayName": "GitWit",
3+
"displayName": "Gitwit: AI-Powered Git Commit Message Generator",
44
"description": "An AI Git Commit Message Generator",
5-
"version": "0.3.0",
6-
"license": "MIT",
5+
"version": "1.0.0",
6+
"license": "GPL-3.0-only",
7+
"publisher": "MohammedAbidNafi",
78
"engines": {
89
"vscode": "^1.93.0"
910
},
1011
"categories": [
11-
"Other"
12+
"AI",
13+
"Snippets"
1214
],
1315
"activationEvents": [],
1416
"main": "./dist/extension.js",
1517
"contributes": {
1618
"commands": [
1719
{
18-
"command": "undefined_publisher.gitwit.extension.generateCommitMessage",
20+
"command": "MohammedAbidNafi.gitwit.extension.generateCommitMessage",
1921
"title": "GitWit: Generate Commit Message"
2022
},
2123
{
22-
"command": "undefined_publisher.gitwit.extension.welcome",
23-
"title": "GitWit: Welcome"
24-
},
25-
{
26-
"command": "undefined_publisher.gitwit.extension.selectModel",
24+
"command": "MohammedAbidNafi.gitwit.extension.selectModel",
2725
"title": "GitWit: Select AI Model"
2826
},
2927
{
30-
"command": "undefined_publisher.gitwit.extension.apikey",
28+
"command": "MohammedAbidNafi.gitwit.extension.apikey",
3129
"title": "GitWit: Enter API Key"
3230
}
3331
],
3432
"configuration": {
3533
"type": "object",
3634
"title": "GitWit Settings",
3735
"properties": {
38-
"undefined_publisher.gitwit.selectedModel": {
36+
"MohammedAbidNafi.gitwit.selectedModel": {
3937
"type": "string",
4038
"default": "gpt-4o",
4139
"enum": [
@@ -52,7 +50,7 @@
5250
],
5351
"description": "Select the AI model you want to use for generating commit messages."
5452
},
55-
"undefined_publisher.gitwit.mainModel": {
53+
"MohammedAbidNafi.gitwit.mainModel": {
5654
"type": "string",
5755
"default": "ChatGPT",
5856
"enum": [
@@ -61,7 +59,7 @@
6159
],
6260
"description": "Select the AI model you want to use for generating commit messages."
6361
},
64-
"undefined_publisher.gitwit.apiKey": {
62+
"MohammedAbidNafi.gitwit.apiKey": {
6563
"type": "string",
6664
"description": "Enter the API key for the selected AI model.",
6765
"default": ""

src/extension.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ export function activate(context: vscode.ExtensionContext) {
99
let response: string = "";
1010

1111
let disposable = vscode.commands.registerCommand(
12-
"undefined_publisher.gitwit.extension.generateCommitMessage",
12+
"MohammedAbidNafi.gitwit.extension.generateCommitMessage",
1313
async () => {
1414
const config = vscode.workspace.getConfiguration(
15-
"undefined_publisher.gitwit"
15+
"MohammedAbidNafi.gitwit"
1616
);
1717
let selectedModel = config.get("selectedModel", "");
1818
let mainModel = config.get("mainModel", "");
@@ -96,7 +96,7 @@ export function activate(context: vscode.ExtensionContext) {
9696
// Open the settings for entering the API key
9797
vscode.commands.executeCommand(
9898
"workbench.action.openSettings",
99-
"undefined_publisher.gitwit.apiKey"
99+
"MohammedAbidNafi.gitwit.apiKey"
100100
);
101101
});
102102
return;
@@ -122,7 +122,7 @@ export function activate(context: vscode.ExtensionContext) {
122122
// Open the settings for entering the API key
123123
vscode.commands.executeCommand(
124124
"workbench.action.openSettings",
125-
"undefined_publisher.gitwit.apiKey"
125+
"MohammedAbidNafi.gitwit.apiKey"
126126
);
127127
});
128128
return;
@@ -145,7 +145,7 @@ export function activate(context: vscode.ExtensionContext) {
145145
.then(() => {
146146
vscode.commands.executeCommand(
147147
"workbench.action.openSettings",
148-
"undefined_publisher.gitwit.mainModel"
148+
"MohammedAbidNafi.gitwit.mainModel"
149149
);
150150
});
151151
}
@@ -183,11 +183,11 @@ export function activate(context: vscode.ExtensionContext) {
183183

184184
context.subscriptions.push(
185185
vscode.commands.registerCommand(
186-
"undefined_publisher.gitwit.extension.welcome",
186+
"MohammedAbidNafi.gitwit.extension.welcome",
187187
() => {
188188
vscode.commands.executeCommand(
189189
`workbench.action.openWalkthrough`,
190-
"undefined_publisher.gitwit",
190+
"MohammedAbidNafi.gitwit",
191191
false
192192
);
193193
}
@@ -198,7 +198,7 @@ export function activate(context: vscode.ExtensionContext) {
198198

199199
context.subscriptions.push(
200200
vscode.commands.registerCommand(
201-
"undefined_publisher.gitwit.extension.selectModel",
201+
"MohammedAbidNafi.gitwit.extension.selectModel",
202202
async function () {
203203
const Model = await vscode.window.showQuickPick(["ChatGPT", "Gemini"], {
204204
placeHolder: "Select the AI model of your choice",
@@ -224,15 +224,15 @@ export function activate(context: vscode.ExtensionContext) {
224224
vscode.workspace
225225
.getConfiguration()
226226
.update(
227-
"undefined_publisher.gitwit.selectedModel",
227+
"MohammedAbidNafi.gitwit.selectedModel",
228228
pickedModel,
229229
vscode.ConfigurationTarget.Global
230230
);
231231

232232
vscode.workspace
233233
.getConfiguration()
234234
.update(
235-
"undefined_publisher.gitwit.mainModel",
235+
"MohammedAbidNafi.gitwit.mainModel",
236236
Model,
237237
vscode.ConfigurationTarget.Global
238238
);
@@ -255,14 +255,14 @@ export function activate(context: vscode.ExtensionContext) {
255255
vscode.workspace
256256
.getConfiguration()
257257
.update(
258-
"undefined_publisher.gitwit.selectedModel",
258+
"MohammedAbidNafi.gitwit.selectedModel",
259259
pickedModel,
260260
vscode.ConfigurationTarget.Global
261261
);
262262
vscode.workspace
263263
.getConfiguration()
264264
.update(
265-
"undefined_publisher.gitwit.mainModel",
265+
"MohammedAbidNafi.gitwit.mainModel",
266266
Model,
267267
vscode.ConfigurationTarget.Global
268268
);
@@ -277,7 +277,7 @@ export function activate(context: vscode.ExtensionContext) {
277277

278278
context.subscriptions.push(
279279
vscode.commands.registerCommand(
280-
"undefined_publisher.gitwit.extension.apikey",
280+
"MohammedAbidNafi.gitwit.extension.apikey",
281281
async function () {
282282
const inputApiKey = await vscode.window.showInputBox({
283283
prompt: "Enter your API Key",
@@ -288,7 +288,7 @@ export function activate(context: vscode.ExtensionContext) {
288288
vscode.workspace
289289
.getConfiguration()
290290
.update(
291-
"undefined_publisher.gitwit.apiKey",
291+
"MohammedAbidNafi.gitwit.apiKey",
292292
inputApiKey,
293293
vscode.ConfigurationTarget.Global
294294
);

0 commit comments

Comments
 (0)