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 +4 -4
- data/CLAUDE.md +2 -2
- data/README.md +5 -0
- data/lib/legion/extensions/github/runners/pull_requests.rb +6 -0
- data/lib/legion/extensions/github/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d7b9e60b04ff608d4c5b8761f1b5ba35a77ab5be9ddf54e71facc3ca276785f5
|
|
4
|
+
data.tar.gz: c83362a92d297a3b23e5c9be2b1ce2d998a22823dc68a12e6918e848ad409e34
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
|
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
|