git-copilot-commit 0.3.1__tar.gz → 0.3.2__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.
@@ -7,7 +7,6 @@ default:
7
7
  commit *args:
8
8
  uv run git-copilot-commit commit {{args}}
9
9
 
10
-
11
10
  # Get the next version based on bump type
12
11
  next-version type="patch":
13
12
  #!/usr/bin/env bash
@@ -45,11 +44,19 @@ bump type="patch":
45
44
  echo " Run: just release version=$new_version"
46
45
 
47
46
  # Push commit, tag, and create GitHub release
48
- release version:
47
+ release version='':
49
48
  #!/usr/bin/env bash
50
49
  set -euo pipefail
51
50
 
52
- version="{{version}}"
51
+ # If version wasn't passed positionally, check for named var
52
+ if [ -z "$version" ]; then
53
+ version="{{version}}" # falls back to global variable if set
54
+ fi
55
+
56
+ if [ -z "$version" ]; then
57
+ echo "Error: version not specified" >&2
58
+ exit 1
59
+ fi
53
60
 
54
61
  echo "Pushing commit and tag for $version..."
55
62
  git push
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-copilot-commit
3
- Version: 0.3.1
3
+ Version: 0.3.2
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
@@ -28,7 +28,7 @@ def version_callback(value: bool):
28
28
  @app.callback(invoke_without_command=True)
29
29
  def main(
30
30
  ctx: typer.Context,
31
- version: bool = typer.Option(
31
+ _: bool = typer.Option(
32
32
  False, "--version", callback=version_callback, help="Show version and exit"
33
33
  ),
34
34
  ):