lex-github 0.2.1 → 0.2.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: 3a702941ecd6266938ebd23c04591aab1cfd1a683293a62c2aa1319ffc2fdb14
4
- data.tar.gz: d193848ada0718f03d7c52cbe20ae588c9a34b7a15e3ea3fdaa95863a22a4b98
3
+ metadata.gz: d7b9e60b04ff608d4c5b8761f1b5ba35a77ab5be9ddf54e71facc3ca276785f5
4
+ data.tar.gz: c83362a92d297a3b23e5c9be2b1ce2d998a22823dc68a12e6918e848ad409e34
5
5
  SHA512:
6
- metadata.gz: 7927d849ef34f48325c92a1953d66d297df0773122ca75680b078616578856455fa2e996a18e713660417974f64f8c46fa90de27d64ea31fd5f90e48611e9711
7
- data.tar.gz: 58f98b27efba1199039b50305b0f296d77d2e2aece855752911b08ce25def9738734119d26e149173f6bfb8734e62823225536517c90faec86507d80fa16c183
6
+ metadata.gz: d92a370e13e41cd53929a2c5f8acb77ce61c087a6857579d99718f4a22cfd37c91d926bd03853029e92908f43380e3af7a4e8e4dd3ea8db959c9675a34be3330
7
+ data.tar.gz: 3c4a106d9e6e23ec802c9ed1082b2e6640e7a6edbabc20a550d5d4373f4755d6fb83491673d9c73725e7cbe5cb6a92b48f78b78fa5d57da9aa2e6687652107d2
data/CLAUDE.md CHANGED
@@ -10,7 +10,7 @@ Legion Extension that connects LegionIO to GitHub. Provides runners for interact
10
10
 
11
11
  **GitHub**: https://github.com/LegionIO/lex-github
12
12
  **License**: MIT
13
- **Version**: 0.2.0
13
+ **Version**: 0.2.1
14
14
 
15
15
  ## Architecture
16
16
 
@@ -58,7 +58,7 @@ Legion::Extensions::Github
58
58
 
59
59
  ## Testing
60
60
 
61
- 47 specs across 13 spec files.
61
+ 47 specs across 12 spec files.
62
62
 
63
63
  ```bash
64
64
  bundle install
data/README.md CHANGED
@@ -128,6 +128,11 @@ client.search_issues(query: 'bug label:bug')
128
128
  - `search_users` - Search users
129
129
  - `search_code` - Search code
130
130
 
131
+ ### Commits
132
+ - `list_commits` - List commits on a repository
133
+ - `get_commit` - Get a single commit by SHA
134
+ - `compare_commits` - Compare two commits, branches, or tags
135
+
131
136
  ## Requirements
132
137
 
133
138
  - Ruby >= 3.4
@@ -56,6 +56,12 @@ module Legion
56
56
  { result: response.body }
57
57
  end
58
58
 
59
+ def create_review(owner:, repo:, pull_number:, body:, comments: [], event: 'COMMENT', **)
60
+ payload = { event: event, body: body, comments: comments }
61
+ response = connection(**).post("/repos/#{owner}/#{repo}/pulls/#{pull_number}/reviews", payload)
62
+ { result: response.body }
63
+ end
64
+
59
65
  include Legion::Extensions::Helpers::Lex if Legion::Extensions.const_defined?(:Helpers) &&
60
66
  Legion::Extensions::Helpers.const_defined?(:Lex)
61
67
  end
@@ -3,7 +3,7 @@
3
3
  module Legion
4
4
  module Extensions
5
5
  module Github
6
- VERSION = '0.2.1'
6
+ VERSION = '0.2.2'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lex-github
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity