ace-git-github 0.1.0 → 0.1.1
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 +5 -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: 582b5aa0bbe2430f79b22897711fdebfa1e6b1b9f95bc18bed86bf65c1e9827f
|
|
4
|
+
data.tar.gz: a494f8d740771123e5d82ea5ab2b10872c38f0434f6e7311a892715025904402
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 554e3438466bb91e22fe03addcdaed22a3678aeab24c00a874a75c36b00fe6814ad06e6b7613075c38864145d4dd29466692ac739f88b1e58998f3feacd19d17
|
|
7
|
+
data.tar.gz: 98b94104aac8d09ca7a319b2c3ef201fb4a44bac5b90e02facbfae5eb477bd74bdb33cfcb64b2cdc6c6d86dfad00fd5783b4567a159bf2952be22ebffe0f5ac0
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.1] - 2026-09-24
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Pass PR number and repository as separate `gh` arguments for cross-repository pull requests.
|
|
14
|
+
|
|
10
15
|
## [0.1.0] - 2026-09-21
|
|
11
16
|
|
|
12
17
|
### Added
|
|
@@ -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.1
|
|
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-24 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: ace-git
|