git-copilot-commit 0.1.4__tar.gz → 0.1.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-copilot-commit
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Summary: Automatically generate and commit changes using copilot
5
5
  Author-email: Dheepak Krishnamurthy <1813121+kdheepak@users.noreply.github.com>
6
6
  License-File: LICENSE
@@ -33,8 +33,6 @@ Install using uv (recommended):
33
33
 
34
34
  ```bash
35
35
  uv tool install git-copilot-commit
36
- # or
37
- uvx git-copilot-commit
38
36
  ```
39
37
 
40
38
  Or with pip:
@@ -43,6 +41,12 @@ Or with pip:
43
41
  pipx install git-copilot-commit
44
42
  ```
45
43
 
44
+ Or without installing:
45
+
46
+ ```bash
47
+ uvx git-copilot-commit --help
48
+ ```
49
+
46
50
  ## Prerequisites
47
51
 
48
52
  **GitHub Copilot Access**: You need an active GitHub Copilot subscription
@@ -20,8 +20,6 @@ Install using uv (recommended):
20
20
 
21
21
  ```bash
22
22
  uv tool install git-copilot-commit
23
- # or
24
- uvx git-copilot-commit
25
23
  ```
26
24
 
27
25
  Or with pip:
@@ -30,6 +28,12 @@ Or with pip:
30
28
  pipx install git-copilot-commit
31
29
  ```
32
30
 
31
+ Or without installing:
32
+
33
+ ```bash
34
+ uvx git-copilot-commit --help
35
+ ```
36
+
33
37
  ## Prerequisites
34
38
 
35
39
  **GitHub Copilot Access**: You need an active GitHub Copilot subscription
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "git-copilot-commit"
3
- version = "0.1.4"
3
+ version = "0.1.6"
4
4
  description = "Automatically generate and commit changes using copilot"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -153,7 +153,8 @@ If multiple changes are detected, prioritize the most important changes in a sin
153
153
  Do not add any body or footer.
154
154
  You can only give one reply for each conversation turn.
155
155
 
156
- Avoid wrapping the whole response in triple backticks.
156
+ Avoid wrapping the whole response in triple backticks or single backticks.
157
+ Return the commit message as the output without any additional text, explanations, or formatting markers.
157
158
  """
158
159
  )
159
160
 
@@ -161,11 +162,13 @@ Avoid wrapping the whole response in triple backticks.
161
162
  {recent_commits_text}
162
163
 
163
164
  `git status`:
165
+
164
166
  ```
165
167
  {status.get_porcelain_output()}
166
168
  ```
167
169
 
168
170
  `git diff --staged`:
171
+
169
172
  ```
170
173
  {status.staged_diff}
171
174
  ```
@@ -242,10 +245,11 @@ def commit(
242
245
  raise typer.Exit()
243
246
 
244
247
  # Generate or use provided commit message
245
- console.print("[cyan]Generating commit message...[/cyan]")
246
- with console.status("[cyan]Generating commit message using Copilot API...[/cyan]"):
248
+ with console.status("[cyan]Generating commit message...[/cyan]"):
247
249
  commit_message = generate_commit_message(repo, status, model)
248
250
 
251
+ console.print("[cyan]Generated commit message...[/cyan]")
252
+
249
253
  # Display commit message
250
254
  console.print(Panel(commit_message, title="Commit Message", border_style="green"))
251
255
 
@@ -291,7 +295,7 @@ def commit(
291
295
  @app.command()
292
296
  def authenticate():
293
297
  """Autheticate with GitHub Copilot."""
294
- Authentication().auth()
298
+ Authentication().try_auth()
295
299
 
296
300
 
297
301
  @app.command()
@@ -78,7 +78,7 @@ wheels = [
78
78
 
79
79
  [[package]]
80
80
  name = "git-copilot-commit"
81
- version = "0.1.4"
81
+ version = "0.1.6"
82
82
  source = { editable = "." }
83
83
  dependencies = [
84
84
  { name = "pycopilot" },