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 +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/ace/git/github/issue_sync.rb +6 -0
- data/lib/ace/git/github/pr_fetcher.rb +2 -2
- data/lib/ace/git/github/pr_identifier.rb +6 -3
- data/lib/ace/git/github/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 87f0b4b44d02a10b05ea01ab8bee7ea5f5c3d0560e4602782ee7d05010ab688b
|
|
4
|
+
data.tar.gz: 3b7332516e0866d09e162f909c9cee66083ac3b16bc368bd17dcadb4f4adafa3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
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
|
-
#
|
|
14
|
-
|
|
15
|
-
|
|
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
|
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.
|
|
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-
|
|
10
|
+
date: 2026-09-27 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: ace-git
|