Skip to content

Commit 5cd0414

Browse files
Merge pull request #56 from thefuture-industries/v3.0.x-pre
final release v3 (git-auto-commit), added tests and --watch upgrade
2 parents 07bad0d + b524670 commit 5cd0414

7 files changed

Lines changed: 337 additions & 215 deletions

File tree

.github/workflows/go-test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Tests git-auto-commit
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
go_check:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Clone repository
13+
uses: actions/checkout@v3
14+
15+
- name: Install Go
16+
uses: actions/setup-go@v4
17+
with:
18+
go-version: '1.23.0'
19+
20+
- name: Run tests
21+
run: |
22+
make test

Help/www/index.html

Lines changed: 128 additions & 167 deletions
Original file line numberDiff line numberDiff line change
@@ -1,182 +1,143 @@
11
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>Git Auto-Commit - The Future Industries</title>
7-
<meta
8-
name="description"
9-
content="Git Auto-Commit is a tool for automatic, context-sensitive commit message generation. Simplify your workflow and focus on coding, not commit messages."
10-
/>
11-
<meta
12-
name="keywords"
13-
content="git, auto-commit, commits, automation, devtools, ci/cd"
14-
/>
15-
<meta name="author" content="The Future Industries" />
16-
<meta
17-
property="og:title"
18-
content="Git Auto-Commit - Automatic Commit Generation Tool"
19-
/>
20-
<meta
21-
property="og:description"
22-
content="Generate commits automatically with meaningful messages based on your changes."
23-
/>
24-
<meta property="og:type" content="website" />
25-
<meta property="og:url" content="https://your-domain.com/" />
26-
<meta name="robots" content="index, follow" />
27-
<meta name="theme-color" content="#0d1117" />
28-
<meta name="format-detection" content="telephone=no" />
29-
<meta http-equiv="X-Frame-Options" content="DENY" />
30-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
31-
<link rel="canonical" href="https://your-domain.com/" />
32-
<style>
33-
body {
34-
margin: 0;
35-
padding: 0;
36-
background: #0d1117;
37-
color: #c9d1d9;
38-
font-family: 'Inter', sans-serif;
39-
line-height: 1.6;
40-
scrollbar-width: none; /* Firefox */
41-
-ms-overflow-style: none;
42-
}
43-
body::-webkit-scrollbar {
44-
display: none; /* Chrome, Safari, Opera */
45-
}
46-
.container {
47-
max-width: 1000px;
48-
margin: 0 auto;
49-
padding: 4rem 2rem;
50-
}
51-
h1,
52-
h2 {
53-
color: #58a6ff;
54-
margin-top: 2rem;
55-
margin-bottom: 1rem;
56-
}
57-
p {
58-
margin-bottom: 1.5rem;
59-
font-size: 1rem;
60-
}
61-
pre {
62-
background: #17243b; /* голубой фон для скриптов */
63-
color: #e6edf3;
64-
padding: 1rem;
65-
border-radius: 0.5rem;
66-
overflow-x: auto;
67-
font-family: 'Fira Code', monospace;
68-
margin-bottom: 2rem;
69-
}
70-
.highlight {
71-
color: #79c0ff;
72-
font-weight: bold;
73-
}
74-
footer {
75-
margin-top: 4rem;
76-
font-size: 0.9rem;
77-
color: #8b949e;
78-
text-align: center;
79-
}
80-
</style>
81-
</head>
82-
<body>
83-
<div class="container">
84-
<h1>Git auto-commit - automatic commit generation tool</h1>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Git Auto-Commit - The Future Industries</title>
7+
<meta name="description" content="Git Auto-Commit is a tool for automatic, context-sensitive commit message generation. Simplify your workflow and focus on coding, not commit messages." />
8+
<meta name="keywords" content="git, auto-commit, commits, automation, devtools, ci/cd" />
9+
<meta name="author" content="The Future Industries" />
10+
<meta property="og:title" content="Git Auto-Commit - Automatic Commit Generation Tool" />
11+
<meta property="og:description" content="Generate commits automatically with meaningful messages based on your changes." />
12+
<meta property="og:type" content="website" />
13+
<meta property="og:url" content="https://git-auto-commit.vercel.app/" />
14+
<meta name="robots" content="index, follow" />
15+
<meta name="theme-color" content="#ffffff" />
16+
<link rel="canonical" href="https://git-auto-commit.vercel.app/" />
8517

86-
<p>
87-
Git Auto-Commit is an extension for the Git version control
88-
system designed to automatically generate meaningful and
89-
context-sensitive commit messages based on changes made to the
90-
codebase. The tool simplifies developers' workflows by allowing
91-
them to focus on the content of edits rather than on the
92-
formulation of descriptions for commits.
93-
</p>
18+
<style>
19+
body {
20+
margin: 0;
21+
padding: 0;
22+
background: #ffffff;
23+
color: #333333;
24+
font-family: 'Inter', sans-serif;
25+
line-height: 1.6;
26+
}
27+
.container {
28+
max-width: 1300px;
29+
margin: 0 auto;
30+
padding: 3rem 1.5rem;
31+
}
32+
h1, h2, h3 {
33+
color: #1a73e8;
34+
margin-top: 2rem;
35+
margin-bottom: 1rem;
36+
}
37+
p {
38+
margin-bottom: 1rem;
39+
font-size: 1rem;
40+
}
41+
pre {
42+
background: #f5f7fa;
43+
color: #0d1117;
44+
padding: 1rem;
45+
border-radius: 8px;
46+
overflow-x: auto;
47+
font-family: 'Fira Code', monospace;
48+
font-size: 0.95rem;
49+
border: 1px solid #e0e4e9;
50+
margin-bottom: 1.5rem;
51+
}
52+
code {
53+
background: #eef2f6;
54+
padding: 0.15rem 0.35rem;
55+
border-radius: 4px;
56+
font-family: 'Fira Code', monospace;
57+
}
58+
ul {
59+
padding-left: 1.5rem;
60+
}
61+
.highlight {
62+
color: #1a73e8;
63+
font-weight: bold;
64+
}
65+
footer {
66+
margin-top: 3rem;
67+
font-size: 0.9rem;
68+
color: #777;
69+
text-align: center;
70+
}
71+
.command-title {
72+
font-weight: bold;
73+
margin-top: 1rem;
74+
}
75+
hr {
76+
border: none;
77+
border-top: 1px solid #e0e4e9;
78+
margin: 2rem 0;
79+
}
80+
</style>
81+
</head>
82+
<body>
83+
<div class="container">
84+
<h1>Git Auto-Commit — Automatic Commit Generation Tool</h1>
9485

95-
<p>
96-
The development is conducted as an open source project and is
97-
distributed under the MIT license (or other compatible
98-
licensing, depending on the implementation). Git Auto-Commit can
99-
be integrated into CI/CD pipelines, hook scripts, or used
100-
manually via the command line.
101-
</p>
86+
<p>
87+
<strong>Git Auto-Commit</strong> is an extension for Git designed to automatically generate meaningful, context-aware commit messages based on your code changes.
88+
This tool streamlines the development workflow by letting you focus on writing code instead of manually crafting commit messages.
89+
</p>
10290

103-
<h2>Main features:</h2>
104-
<ul>
105-
<li>
106-
Analysis of changes in the work tree and automatic
107-
generation of commit messages in natural language.
108-
</li>
109-
<li>
110-
Integration with Git via the
111-
<code>git auto</code> sub-command or configuration of user
112-
aliases.
113-
</li>
114-
<li>
115-
Support for templates and configurations for customizing
116-
message structure to project standards (Conventional
117-
Commits, Semantic Commit Messages, etc.).
118-
</li>
119-
<li>
120-
Scalability: works both in small projects and in large
121-
monorepositories.
122-
</li>
123-
</ul>
91+
<p>
92+
Developed as an open-source project under the MIT license (or compatible licensing), Git Auto-Commit can be integrated into CI/CD pipelines, hook scripts, or used manually via the command line.
93+
</p>
12494

125-
<h2>Install</h2>
126-
<p>
127-
<span class="highlight">If you're on Windows</span><br />
128-
Go to the root of the project and run the command:
129-
</p>
130-
<pre>
131-
iex ((New-Object Net.WebClient).DownloadString('https://github.com/thefuture-industries/git-auto-commit/blob/main/scripts/install-windows-auto-commit.ps1?raw=true'))</pre
132-
>
95+
<h2>Main Features</h2>
96+
<ul>
97+
<li>Analyzes changes and generates commit messages in natural language.</li>
98+
<li>Integrates with Git via the <code>git auto</code> sub-command or custom aliases.</li>
99+
<li>Supports templates and configurations (e.g., Conventional Commits, Semantic Commit Messages).</li>
100+
<li>Scales from small projects to large monorepositories.</li>
101+
</ul>
133102

134-
<p>
135-
<span class="highlight">If you're on Linux</span><br />
136-
Go to the root of the project and run the command:
137-
</p>
138-
<pre>
139-
echo Y | bash &lt;(curl -fsSL https://github.com/thefuture-industries/git-auto-commit/blob/main/scripts/install-linux-auto-commit.sh?raw=true)</pre
140-
>
103+
<h2>Install</h2>
141104

142-
<p>
143-
<span class="highlight">If you're on MacOS</span><br />
144-
Go to the root of the project and run the command:
145-
</p>
146-
<pre>
147-
echo Y | curl -fsSL https://github.com/thefuture-industries/git-auto-commit/blob/main/scripts/install-macos-auto-commit.sh?raw=true | bash</pre
148-
>
105+
<p class="highlight">Windows</p>
106+
<pre>iex ((New-Object Net.WebClient).DownloadString('https://github.com/thefuture-industries/git-auto-commit/blob/main/scripts/install-windows-auto-commit.ps1?raw=true'))</pre>
149107

150-
<h2>Setting up</h2>
151-
<h3>Launch</h3>
152-
<p>
153-
Everything is ready now, after making changes to the code, just
154-
run:
155-
</p>
108+
<p class="highlight">Linux</p>
109+
<pre>echo Y | bash &lt;(curl -fsSL https://github.com/thefuture-industries/git-auto-commit/blob/main/scripts/install-linux-auto-commit.sh?raw=true)</pre>
156110

157-
<p>1 Option</p>
158-
<pre>
111+
<p class="highlight">macOS</p>
112+
<pre>echo Y | curl -fsSL https://github.com/thefuture-industries/git-auto-commit/blob/main/scripts/install-macos-auto-commit.sh?raw=true | bash</pre>
113+
114+
<h2>Setting Up</h2>
115+
<h3>Launch</h3>
116+
<p>Once installed, you can start committing automatically:</p>
117+
118+
<div class="command-title">Option 1 — Manual Commit</div>
119+
<pre>
159120
git add .
160121
git auto
161-
git push</pre
162-
>
122+
git push
123+
</pre>
124+
125+
<div class="command-title">Option 2 — Git Auto Commands</div>
126+
<pre>
127+
git auto -w # Watch mode: automatically commits when changes are detected
128+
git auto -v # View current auto-commit version
129+
git auto -u # Update to the latest auto-commit version
130+
</pre>
163131

164-
<p>2 Commands</p>
165-
<pre>
166-
git auto -w # Commit observer: you don't have to think and write anymore, `git auto -w` will figure it out and commit for you!
167-
git auto -v # Viewing the current version of auto-commit
168-
git auto -u # Upgrade to the new auto-commit version</pre
169-
>
132+
<hr>
170133

171-
<footer>
172-
Distributed under the MIT License • &copy; 2025 The Future
173-
Industries
174-
</footer>
175-
</div>
134+
<footer>
135+
Distributed under the MIT License • &copy; 2025 The Future Industries
136+
</footer>
137+
</div>
176138

177-
<script>
178-
// Тебе пока не нужен JS для функционала, но оставляю базовую структуру:
179-
console.log('Git Auto-Commit page loaded!');
180-
</script>
181-
</body>
182-
</html>
139+
<script>
140+
console.log('Git Auto-Commit page loaded!');
141+
</script>
142+
</body>
143+
</html>

README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,26 @@ git push
5353

5454
- 2 Commands
5555

56+
#### Launching in monitoring mode
57+
58+
Comit observer, you dont have to think and write more `git auto` -w (--watch) will figure it out when to make a comit and commit it yourself!
59+
60+
```bash
61+
git auto -w
62+
```
63+
64+
#### Viewing the current version
65+
66+
Viewing the current version of auto-commit
67+
68+
```bash
69+
git auto -v
70+
```
71+
72+
#### Upgrade to a new version
73+
74+
Upgrade to the new auto-commit version
75+
5676
```bash
57-
git auto -w - Comit observer, you dont have to think and write more `git auto` -w (--watch) will figure it out when to make a comit and commit it yourself!
58-
git auto -v - Viewing the current version of auto-commit
59-
git auto -u - Upgrade to the new auto-commit version
77+
git auto -u
6078
```

0 commit comments

Comments
 (0)