ace-git-github 0.1.0 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e706c505528940d27bbfeb97b2cc408293f4082c4ed8bbbf5735e2db9470db1
4
- data.tar.gz: a6e07ea07d307f870f015736c5f2d6039f4e7b480ff1824241540e0f21cb9eac
3
+ metadata.gz: 87f0b4b44d02a10b05ea01ab8bee7ea5f5c3d0560e4602782ee7d05010ab688b
4
+ data.tar.gz: 3b7332516e0866d09e162f909c9cee66083ac3b16bc368bd17dcadb4f4adafa3
5
5
  SHA512:
6
- metadata.gz: 5c9f2355511d607ef3910972145dab113234012e6935d11e491735775a6a25c83f23c7efb798779b7324ae0f7f6bea5dd07686b1c8651c45da33103ceb284d9f
7
- data.tar.gz: 37235ad5c2af2931d4cdf7e76177c82b572f047e0463bb7ae9a8594b52ae038f4a704bec4a6c3c4093e0f9c7b8b9bacaeb74a6a7b514eb377cb6ffe970d4674b
6
+ metadata.gz: 84ecc1d39e1622757fa67377c41cf376cc190564b69871a03750313ceadd30cd7448fa6773f4211020cdcf90f08d3118c49da13112a207557d6f614b385ef380
7
+ data.tar.gz: 736f512c9293e23ba4569187036db44d8016344d293eb307048d5798bc7575d37aecc7a73a344708a97b891a3d3bb96b3de1dcd75e4e8d6daf382be615307733
data/CHANGELOG.md CHANGED
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.2] - 2026-09-26
11
+
12
+ ### Added
13
+ - `IssueSync.available?` probe: true when the `gh` CLI is installed and authenticated, letting callers treat GitHub sync as best-effort.
14
+
15
+ ## [0.1.1] - 2026-09-24
16
+
17
+ ### Fixed
18
+ - Pass PR number and repository as separate `gh` arguments for cross-repository pull requests.
19
+
10
20
  ## [0.1.0] - 2026-09-21
11
21
 
12
22
  ### Added
@@ -14,6 +14,12 @@ module Ace
14
14
  TRACKED_LABEL = "ace:tracked"
15
15
  TERMINAL_STATUSES = %w[done completed shipped closed cancelled skipped archived].freeze
16
16
 
17
+ # True when GitHub sync can run: the gh CLI is installed and authenticated.
18
+ # GitHub sync is best-effort; callers skip it silently when this is false.
19
+ def self.available?
20
+ CliExecutor.authenticated?
21
+ end
22
+
17
23
  def self.sync_task(task_id:, task_title:, task_status:, task_path:, issue_ids:, reason:, previous: nil,
18
24
  current_issue_ids: nil)
19
25
  current_ids = if current_issue_ids.nil?
@@ -59,7 +59,7 @@ module Ace
59
59
 
60
60
  validate_identifier_characters(parsed.gh_format)
61
61
 
62
- result = CliExecutor.execute("pr", ["diff", parsed.gh_format], timeout: timeout, runner: runner)
62
+ result = CliExecutor.execute("pr", ["diff", *parsed.cli_target_args], timeout: timeout, runner: runner)
63
63
 
64
64
  if result[:success]
65
65
  {
@@ -86,7 +86,7 @@ module Ace
86
86
  validate_identifier_characters(parsed.gh_format)
87
87
 
88
88
  result = CliExecutor.execute(
89
- "pr", ["view", parsed.gh_format, "--json", PR_FIELDS.join(",")],
89
+ "pr", ["view", *parsed.cli_target_args, "--json", PR_FIELDS.join(",")],
90
90
  timeout: timeout, runner: runner
91
91
  )
92
92
 
@@ -10,9 +10,12 @@ module Ace
10
10
  # - Qualified reference: "owner/repo#456"
11
11
  # - GitHub URL: "https://github.com/owner/repo/pull/789"
12
12
  module PrIdentifier
13
- # Parsed PR identifier result. `gh_format` is the form accepted by
14
- # `gh pr` commands.
15
- ParseResult = Data.define(:number, :repo, :gh_format)
13
+ # `gh_format` is a stable identity; gh CLI requires --repo separately.
14
+ ParseResult = Data.define(:number, :repo, :gh_format) do
15
+ def cli_target_args
16
+ repo ? [number, "--repo", repo] : [number]
17
+ end
18
+ end
16
19
 
17
20
  # Maximum length for PR identifier to bound regex work
18
21
  MAX_IDENTIFIER_LENGTH = 256
@@ -3,7 +3,7 @@
3
3
  module Ace
4
4
  module Git
5
5
  module Github
6
- VERSION = "0.1.0"
6
+ VERSION = "0.1.2"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ace-git-github
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Czyz
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-09-23 00:00:00.000000000 Z
10
+ date: 2026-09-27 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: ace-git