@matimo/github 0.1.0-alpha.8
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.
- package/LICENSE +21 -0
- package/README.md +392 -0
- package/definition.yaml +71 -0
- package/package.json +17 -0
- package/tools/add-collaborator/definition.yaml +73 -0
- package/tools/create-issue/definition.yaml +96 -0
- package/tools/create-pull-request/definition.yaml +103 -0
- package/tools/create-release/definition.yaml +103 -0
- package/tools/create-repository/definition.yaml +112 -0
- package/tools/delete-repository/definition.yaml +51 -0
- package/tools/get-issue/definition.yaml +70 -0
- package/tools/get-repository/definition.yaml +83 -0
- package/tools/list-code-alerts/definition.yaml +79 -0
- package/tools/list-collaborators/definition.yaml +72 -0
- package/tools/list-commits/definition.yaml +75 -0
- package/tools/list-issues/definition.yaml +88 -0
- package/tools/list-pull-requests/definition.yaml +87 -0
- package/tools/list-releases/definition.yaml +63 -0
- package/tools/list-repositories/definition.yaml +73 -0
- package/tools/merge-pull-request/definition.yaml +88 -0
- package/tools/search-code/definition.yaml +69 -0
- package/tools/search-issues/definition.yaml +69 -0
- package/tools/search-repositories/definition.yaml +77 -0
- package/tools/search-users/definition.yaml +69 -0
- package/tools/update-code-alert/definition.yaml +86 -0
- package/tools/update-issue/definition.yaml +98 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
name: github-list-commits
|
|
2
|
+
description: List commits in a repository
|
|
3
|
+
version: '1.0.0'
|
|
4
|
+
|
|
5
|
+
parameters:
|
|
6
|
+
owner:
|
|
7
|
+
type: string
|
|
8
|
+
required: true
|
|
9
|
+
description: Repository owner username or organization
|
|
10
|
+
repo:
|
|
11
|
+
type: string
|
|
12
|
+
required: true
|
|
13
|
+
description: Repository name
|
|
14
|
+
sha:
|
|
15
|
+
type: string
|
|
16
|
+
required: false
|
|
17
|
+
description: SHA or branch name (default is main/master)
|
|
18
|
+
path:
|
|
19
|
+
type: string
|
|
20
|
+
required: false
|
|
21
|
+
description: Only commits modifying this path
|
|
22
|
+
author:
|
|
23
|
+
type: string
|
|
24
|
+
required: false
|
|
25
|
+
description: Filter by commit author (login or email)
|
|
26
|
+
per_page:
|
|
27
|
+
type: number
|
|
28
|
+
required: false
|
|
29
|
+
description: Results per page (max 100)
|
|
30
|
+
default: 30
|
|
31
|
+
page:
|
|
32
|
+
type: number
|
|
33
|
+
required: false
|
|
34
|
+
description: Page number for pagination
|
|
35
|
+
default: 1
|
|
36
|
+
|
|
37
|
+
execution:
|
|
38
|
+
type: http
|
|
39
|
+
method: GET
|
|
40
|
+
url: 'https://api.github.com/repos/{owner}/{repo}/commits?per_page={per_page}&page={page}'
|
|
41
|
+
headers:
|
|
42
|
+
Accept: application/vnd.github+json
|
|
43
|
+
Authorization: 'Bearer {GITHUB_TOKEN}'
|
|
44
|
+
X-GitHub-Api-Version: '2022-11-28'
|
|
45
|
+
timeout: 15000
|
|
46
|
+
|
|
47
|
+
authentication:
|
|
48
|
+
type: bearer
|
|
49
|
+
location: header
|
|
50
|
+
notes:
|
|
51
|
+
env: GITHUB_TOKEN
|
|
52
|
+
optional: Public repos don't require authentication
|
|
53
|
+
|
|
54
|
+
output_schema:
|
|
55
|
+
type: array
|
|
56
|
+
items:
|
|
57
|
+
type: object
|
|
58
|
+
description: Commit object
|
|
59
|
+
|
|
60
|
+
error_handling:
|
|
61
|
+
retry: 2
|
|
62
|
+
backoff_type: exponential
|
|
63
|
+
initial_delay_ms: 1000
|
|
64
|
+
|
|
65
|
+
examples:
|
|
66
|
+
- name: List recent commits
|
|
67
|
+
params:
|
|
68
|
+
owner: kubernetes
|
|
69
|
+
repo: kubernetes
|
|
70
|
+
sha: main
|
|
71
|
+
- name: Commits by author
|
|
72
|
+
params:
|
|
73
|
+
owner: nodejs
|
|
74
|
+
repo: node
|
|
75
|
+
author: torvalds@linux-foundation.org
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
name: github-list-issues
|
|
2
|
+
description: List issues in a repository with filtering and sorting options
|
|
3
|
+
version: '1.0.0'
|
|
4
|
+
|
|
5
|
+
parameters:
|
|
6
|
+
owner:
|
|
7
|
+
type: string
|
|
8
|
+
required: true
|
|
9
|
+
description: Repository owner username or organization
|
|
10
|
+
repo:
|
|
11
|
+
type: string
|
|
12
|
+
required: true
|
|
13
|
+
description: Repository name
|
|
14
|
+
state:
|
|
15
|
+
type: string
|
|
16
|
+
required: false
|
|
17
|
+
description: Filter by state - open, closed, or all
|
|
18
|
+
default: open
|
|
19
|
+
assignee:
|
|
20
|
+
type: string
|
|
21
|
+
required: false
|
|
22
|
+
description: Filter by assignee username or 'none' for unassigned
|
|
23
|
+
labels:
|
|
24
|
+
type: string
|
|
25
|
+
required: false
|
|
26
|
+
description: Comma-separated label names
|
|
27
|
+
sort:
|
|
28
|
+
type: string
|
|
29
|
+
required: false
|
|
30
|
+
description: Sort by - created, updated, or comments
|
|
31
|
+
default: created
|
|
32
|
+
direction:
|
|
33
|
+
type: string
|
|
34
|
+
required: false
|
|
35
|
+
description: Sort direction - asc or desc
|
|
36
|
+
default: desc
|
|
37
|
+
per_page:
|
|
38
|
+
type: number
|
|
39
|
+
required: false
|
|
40
|
+
description: Results per page (max 100)
|
|
41
|
+
default: 30
|
|
42
|
+
page:
|
|
43
|
+
type: number
|
|
44
|
+
required: false
|
|
45
|
+
description: Page number for pagination
|
|
46
|
+
default: 1
|
|
47
|
+
|
|
48
|
+
execution:
|
|
49
|
+
type: http
|
|
50
|
+
method: GET
|
|
51
|
+
url: 'https://api.github.com/repos/{owner}/{repo}/issues?state={state}&per_page={per_page}&page={page}'
|
|
52
|
+
headers:
|
|
53
|
+
Accept: application/vnd.github+json
|
|
54
|
+
Authorization: 'Bearer {GITHUB_TOKEN}'
|
|
55
|
+
X-GitHub-Api-Version: '2022-11-28'
|
|
56
|
+
timeout: 15000
|
|
57
|
+
|
|
58
|
+
authentication:
|
|
59
|
+
type: bearer
|
|
60
|
+
location: header
|
|
61
|
+
notes:
|
|
62
|
+
env: GITHUB_TOKEN
|
|
63
|
+
scope: Public repos don't require authentication
|
|
64
|
+
public: Can query without token
|
|
65
|
+
|
|
66
|
+
output_schema:
|
|
67
|
+
type: array
|
|
68
|
+
items:
|
|
69
|
+
type: object
|
|
70
|
+
description: Issue object
|
|
71
|
+
|
|
72
|
+
error_handling:
|
|
73
|
+
retry: 2
|
|
74
|
+
backoff_type: exponential
|
|
75
|
+
initial_delay_ms: 1000
|
|
76
|
+
|
|
77
|
+
examples:
|
|
78
|
+
- name: List open issues
|
|
79
|
+
params:
|
|
80
|
+
owner: kubernetes
|
|
81
|
+
repo: kubernetes
|
|
82
|
+
state: open
|
|
83
|
+
- name: List issues assigned to user
|
|
84
|
+
params:
|
|
85
|
+
owner: nodejs
|
|
86
|
+
repo: node
|
|
87
|
+
assignee: username
|
|
88
|
+
sort: updated
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
name: github-list-pull-requests
|
|
2
|
+
description: List pull requests in a repository with filtering and sorting options
|
|
3
|
+
version: '1.0.0'
|
|
4
|
+
|
|
5
|
+
parameters:
|
|
6
|
+
owner:
|
|
7
|
+
type: string
|
|
8
|
+
required: true
|
|
9
|
+
description: Repository owner username or organization
|
|
10
|
+
repo:
|
|
11
|
+
type: string
|
|
12
|
+
required: true
|
|
13
|
+
description: Repository name
|
|
14
|
+
state:
|
|
15
|
+
type: string
|
|
16
|
+
required: false
|
|
17
|
+
description: Filter by state - open, closed, or all
|
|
18
|
+
default: open
|
|
19
|
+
head:
|
|
20
|
+
type: string
|
|
21
|
+
required: false
|
|
22
|
+
description: Filter by head branch (user:ref-name)
|
|
23
|
+
base:
|
|
24
|
+
type: string
|
|
25
|
+
required: false
|
|
26
|
+
description: Filter by base branch name
|
|
27
|
+
sort:
|
|
28
|
+
type: string
|
|
29
|
+
required: false
|
|
30
|
+
description: Sort by - created, updated, popularity, or long-running
|
|
31
|
+
default: created
|
|
32
|
+
direction:
|
|
33
|
+
type: string
|
|
34
|
+
required: false
|
|
35
|
+
description: Sort direction - asc or desc
|
|
36
|
+
default: desc
|
|
37
|
+
per_page:
|
|
38
|
+
type: number
|
|
39
|
+
required: false
|
|
40
|
+
description: Results per page (max 100)
|
|
41
|
+
default: 30
|
|
42
|
+
page:
|
|
43
|
+
type: number
|
|
44
|
+
required: false
|
|
45
|
+
description: Page number for pagination
|
|
46
|
+
default: 1
|
|
47
|
+
|
|
48
|
+
execution:
|
|
49
|
+
type: http
|
|
50
|
+
method: GET
|
|
51
|
+
url: 'https://api.github.com/repos/{owner}/{repo}/pulls?state={state}&per_page={per_page}&page={page}'
|
|
52
|
+
headers:
|
|
53
|
+
Accept: application/vnd.github+json
|
|
54
|
+
Authorization: 'Bearer {GITHUB_TOKEN}'
|
|
55
|
+
X-GitHub-Api-Version: '2022-11-28'
|
|
56
|
+
timeout: 15000
|
|
57
|
+
|
|
58
|
+
authentication:
|
|
59
|
+
type: bearer
|
|
60
|
+
location: header
|
|
61
|
+
notes:
|
|
62
|
+
env: GITHUB_TOKEN
|
|
63
|
+
optional: Public repos don't require authentication
|
|
64
|
+
|
|
65
|
+
output_schema:
|
|
66
|
+
type: array
|
|
67
|
+
items:
|
|
68
|
+
type: object
|
|
69
|
+
description: Pull request object
|
|
70
|
+
|
|
71
|
+
error_handling:
|
|
72
|
+
retry: 2
|
|
73
|
+
backoff_type: exponential
|
|
74
|
+
initial_delay_ms: 1000
|
|
75
|
+
|
|
76
|
+
examples:
|
|
77
|
+
- name: List open PRs
|
|
78
|
+
params:
|
|
79
|
+
owner: kubernetes
|
|
80
|
+
repo: kubernetes
|
|
81
|
+
state: open
|
|
82
|
+
- name: List recently updated PRs
|
|
83
|
+
params:
|
|
84
|
+
owner: nodejs
|
|
85
|
+
repo: node
|
|
86
|
+
sort: updated
|
|
87
|
+
direction: desc
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
name: github-list-releases
|
|
2
|
+
description: List releases for a repository
|
|
3
|
+
version: '1.0.0'
|
|
4
|
+
|
|
5
|
+
parameters:
|
|
6
|
+
owner:
|
|
7
|
+
type: string
|
|
8
|
+
required: true
|
|
9
|
+
description: Repository owner username or organization
|
|
10
|
+
repo:
|
|
11
|
+
type: string
|
|
12
|
+
required: true
|
|
13
|
+
description: Repository name
|
|
14
|
+
per_page:
|
|
15
|
+
type: number
|
|
16
|
+
required: false
|
|
17
|
+
description: Results per page (max 100)
|
|
18
|
+
default: 30
|
|
19
|
+
page:
|
|
20
|
+
type: number
|
|
21
|
+
required: false
|
|
22
|
+
description: Page number for pagination
|
|
23
|
+
default: 1
|
|
24
|
+
|
|
25
|
+
execution:
|
|
26
|
+
type: http
|
|
27
|
+
method: GET
|
|
28
|
+
url: 'https://api.github.com/repos/{owner}/{repo}/releases?per_page={per_page}&page={page}'
|
|
29
|
+
headers:
|
|
30
|
+
Accept: application/vnd.github+json
|
|
31
|
+
Authorization: 'Bearer {GITHUB_TOKEN}'
|
|
32
|
+
X-GitHub-Api-Version: '2022-11-28'
|
|
33
|
+
timeout: 15000
|
|
34
|
+
|
|
35
|
+
authentication:
|
|
36
|
+
type: bearer
|
|
37
|
+
location: header
|
|
38
|
+
notes:
|
|
39
|
+
env: GITHUB_TOKEN
|
|
40
|
+
optional: Public repos don't require authentication
|
|
41
|
+
|
|
42
|
+
output_schema:
|
|
43
|
+
type: array
|
|
44
|
+
items:
|
|
45
|
+
type: object
|
|
46
|
+
description: Release object
|
|
47
|
+
|
|
48
|
+
error_handling:
|
|
49
|
+
retry: 2
|
|
50
|
+
backoff_type: exponential
|
|
51
|
+
initial_delay_ms: 1000
|
|
52
|
+
|
|
53
|
+
examples:
|
|
54
|
+
- name: List all releases
|
|
55
|
+
params:
|
|
56
|
+
owner: kubernetes
|
|
57
|
+
repo: kubernetes
|
|
58
|
+
- name: List with pagination
|
|
59
|
+
params:
|
|
60
|
+
owner: nodejs
|
|
61
|
+
repo: node
|
|
62
|
+
per_page: 10
|
|
63
|
+
page: 2
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
name: github-list-repositories
|
|
2
|
+
description: List repositories for an organization or user with filtering and sorting
|
|
3
|
+
version: '1.0.0'
|
|
4
|
+
|
|
5
|
+
parameters:
|
|
6
|
+
owner:
|
|
7
|
+
type: string
|
|
8
|
+
required: true
|
|
9
|
+
description: Organization or user login/username
|
|
10
|
+
type:
|
|
11
|
+
type: string
|
|
12
|
+
required: false
|
|
13
|
+
description: Filter by type - all, public, private, forks, sources, member
|
|
14
|
+
default: all
|
|
15
|
+
sort:
|
|
16
|
+
type: string
|
|
17
|
+
required: false
|
|
18
|
+
description: Sort by - created, updated, pushed, or full_name
|
|
19
|
+
default: created
|
|
20
|
+
direction:
|
|
21
|
+
type: string
|
|
22
|
+
required: false
|
|
23
|
+
description: Sort direction - asc or desc
|
|
24
|
+
default: desc
|
|
25
|
+
per_page:
|
|
26
|
+
type: number
|
|
27
|
+
required: false
|
|
28
|
+
description: Results per page (max 100)
|
|
29
|
+
default: 30
|
|
30
|
+
page:
|
|
31
|
+
type: number
|
|
32
|
+
required: false
|
|
33
|
+
description: Page number for pagination
|
|
34
|
+
default: 1
|
|
35
|
+
|
|
36
|
+
execution:
|
|
37
|
+
type: http
|
|
38
|
+
method: GET
|
|
39
|
+
url: 'https://api.github.com/orgs/{owner}/repos?type={type}&per_page={per_page}&page={page}'
|
|
40
|
+
headers:
|
|
41
|
+
Accept: application/vnd.github+json
|
|
42
|
+
Authorization: 'Bearer {GITHUB_TOKEN}'
|
|
43
|
+
X-GitHub-Api-Version: '2022-11-28'
|
|
44
|
+
timeout: 15000
|
|
45
|
+
|
|
46
|
+
authentication:
|
|
47
|
+
type: bearer
|
|
48
|
+
location: header
|
|
49
|
+
notes:
|
|
50
|
+
env: GITHUB_TOKEN
|
|
51
|
+
optional: Public repos don't require authentication
|
|
52
|
+
|
|
53
|
+
output_schema:
|
|
54
|
+
type: array
|
|
55
|
+
items:
|
|
56
|
+
type: object
|
|
57
|
+
description: Repository object
|
|
58
|
+
|
|
59
|
+
error_handling:
|
|
60
|
+
retry: 2
|
|
61
|
+
backoff_type: exponential
|
|
62
|
+
initial_delay_ms: 1000
|
|
63
|
+
|
|
64
|
+
examples:
|
|
65
|
+
- name: List organization repositories
|
|
66
|
+
params:
|
|
67
|
+
owner: kubernetes
|
|
68
|
+
type: all
|
|
69
|
+
sort: updated
|
|
70
|
+
- name: List user public repositories
|
|
71
|
+
params:
|
|
72
|
+
owner: torvalds
|
|
73
|
+
type: public
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
name: github-merge-pull-request
|
|
2
|
+
description: Merge a pull request into the base branch
|
|
3
|
+
version: '1.0.0'
|
|
4
|
+
requires_approval: true
|
|
5
|
+
|
|
6
|
+
parameters:
|
|
7
|
+
owner:
|
|
8
|
+
type: string
|
|
9
|
+
required: true
|
|
10
|
+
description: Repository owner username or organization
|
|
11
|
+
repo:
|
|
12
|
+
type: string
|
|
13
|
+
required: true
|
|
14
|
+
description: Repository name
|
|
15
|
+
pull_number:
|
|
16
|
+
type: number
|
|
17
|
+
required: true
|
|
18
|
+
description: Pull request number
|
|
19
|
+
commit_title:
|
|
20
|
+
type: string
|
|
21
|
+
required: false
|
|
22
|
+
description: Custom commit title
|
|
23
|
+
commit_message:
|
|
24
|
+
type: string
|
|
25
|
+
required: false
|
|
26
|
+
description: Custom commit message
|
|
27
|
+
merge_method:
|
|
28
|
+
type: string
|
|
29
|
+
required: false
|
|
30
|
+
description: Merge method - merge, squash, or rebase
|
|
31
|
+
default: merge
|
|
32
|
+
sha:
|
|
33
|
+
type: string
|
|
34
|
+
required: false
|
|
35
|
+
description: Expected SHA of the PR head commit (for safety check)
|
|
36
|
+
|
|
37
|
+
execution:
|
|
38
|
+
type: http
|
|
39
|
+
method: PUT
|
|
40
|
+
url: 'https://api.github.com/repos/{owner}/{repo}/pulls/{pull_number}/merge'
|
|
41
|
+
headers:
|
|
42
|
+
Accept: application/vnd.github+json
|
|
43
|
+
Authorization: 'Bearer {GITHUB_TOKEN}'
|
|
44
|
+
X-GitHub-Api-Version: '2022-11-28'
|
|
45
|
+
Content-Type: application/json
|
|
46
|
+
body:
|
|
47
|
+
commit_title: '{commit_title}'
|
|
48
|
+
commit_message: '{commit_message}'
|
|
49
|
+
merge_method: '{merge_method}'
|
|
50
|
+
sha: '{sha}'
|
|
51
|
+
timeout: 15000
|
|
52
|
+
|
|
53
|
+
authentication:
|
|
54
|
+
type: bearer
|
|
55
|
+
location: header
|
|
56
|
+
notes:
|
|
57
|
+
env: GITHUB_TOKEN
|
|
58
|
+
required: true
|
|
59
|
+
permission: Pull requests write
|
|
60
|
+
|
|
61
|
+
output_schema:
|
|
62
|
+
type: object
|
|
63
|
+
properties:
|
|
64
|
+
sha:
|
|
65
|
+
type: string
|
|
66
|
+
description: Merge commit SHA
|
|
67
|
+
merged:
|
|
68
|
+
type: boolean
|
|
69
|
+
message:
|
|
70
|
+
type: string
|
|
71
|
+
|
|
72
|
+
error_handling:
|
|
73
|
+
retry: 1
|
|
74
|
+
backoff_type: exponential
|
|
75
|
+
initial_delay_ms: 1000
|
|
76
|
+
|
|
77
|
+
examples:
|
|
78
|
+
- name: Merge pull request
|
|
79
|
+
params:
|
|
80
|
+
owner: myorg
|
|
81
|
+
repo: myrepo
|
|
82
|
+
pull_number: 42
|
|
83
|
+
- name: Squash merge
|
|
84
|
+
params:
|
|
85
|
+
owner: myorg
|
|
86
|
+
repo: myrepo
|
|
87
|
+
pull_number: 42
|
|
88
|
+
merge_method: squash
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
name: github-search-code
|
|
2
|
+
description: Search for code content across GitHub repositories
|
|
3
|
+
version: '1.0.0'
|
|
4
|
+
|
|
5
|
+
parameters:
|
|
6
|
+
query:
|
|
7
|
+
type: string
|
|
8
|
+
required: true
|
|
9
|
+
description: Code search query with qualifiers (e.g., 'className:MyClass repo:owner/repo')
|
|
10
|
+
sort:
|
|
11
|
+
type: string
|
|
12
|
+
required: false
|
|
13
|
+
description: Sort field - indexed (default)
|
|
14
|
+
default: indexed
|
|
15
|
+
order:
|
|
16
|
+
type: string
|
|
17
|
+
required: false
|
|
18
|
+
description: Sort order - asc or desc
|
|
19
|
+
default: desc
|
|
20
|
+
per_page:
|
|
21
|
+
type: number
|
|
22
|
+
required: false
|
|
23
|
+
description: Results per page (max 100)
|
|
24
|
+
default: 30
|
|
25
|
+
page:
|
|
26
|
+
type: number
|
|
27
|
+
required: false
|
|
28
|
+
description: Page number for pagination
|
|
29
|
+
default: 1
|
|
30
|
+
|
|
31
|
+
execution:
|
|
32
|
+
type: http
|
|
33
|
+
method: GET
|
|
34
|
+
url: 'https://api.github.com/search/code?q={query}&sort={sort}&order={order}&per_page={per_page}&page={page}'
|
|
35
|
+
headers:
|
|
36
|
+
Accept: application/vnd.github+json
|
|
37
|
+
Authorization: 'Bearer {GITHUB_TOKEN}'
|
|
38
|
+
X-GitHub-Api-Version: '2022-11-28'
|
|
39
|
+
timeout: 30000
|
|
40
|
+
|
|
41
|
+
authentication:
|
|
42
|
+
type: bearer
|
|
43
|
+
location: header
|
|
44
|
+
notes:
|
|
45
|
+
env: GITHUB_TOKEN
|
|
46
|
+
rate_limit: 10 req/min authenticated (requires authentication)
|
|
47
|
+
note: Code search requires authentication and only searches default branch
|
|
48
|
+
|
|
49
|
+
output_schema:
|
|
50
|
+
type: object
|
|
51
|
+
properties:
|
|
52
|
+
total_count:
|
|
53
|
+
type: number
|
|
54
|
+
items:
|
|
55
|
+
type: array
|
|
56
|
+
description: Array of code search result objects
|
|
57
|
+
|
|
58
|
+
error_handling:
|
|
59
|
+
retry: 2
|
|
60
|
+
backoff_type: exponential
|
|
61
|
+
initial_delay_ms: 1000
|
|
62
|
+
|
|
63
|
+
examples:
|
|
64
|
+
- name: Find function definitions
|
|
65
|
+
params:
|
|
66
|
+
query: 'function handleSubmit repo:facebook/react'
|
|
67
|
+
- name: Search for configuration files
|
|
68
|
+
params:
|
|
69
|
+
query: 'filename:tsconfig.json'
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
name: github-search-issues
|
|
2
|
+
description: Search for issues and pull requests across GitHub
|
|
3
|
+
version: '1.0.0'
|
|
4
|
+
|
|
5
|
+
parameters:
|
|
6
|
+
query:
|
|
7
|
+
type: string
|
|
8
|
+
required: true
|
|
9
|
+
description: Search query with qualifiers (e.g., 'is:open type:issue repo:owner/repo')
|
|
10
|
+
sort:
|
|
11
|
+
type: string
|
|
12
|
+
required: false
|
|
13
|
+
description: Sort field - comments, reactions, created, or updated
|
|
14
|
+
default: created
|
|
15
|
+
order:
|
|
16
|
+
type: string
|
|
17
|
+
required: false
|
|
18
|
+
description: Sort order - asc or desc
|
|
19
|
+
default: desc
|
|
20
|
+
per_page:
|
|
21
|
+
type: number
|
|
22
|
+
required: false
|
|
23
|
+
description: Results per page (max 100)
|
|
24
|
+
default: 30
|
|
25
|
+
page:
|
|
26
|
+
type: number
|
|
27
|
+
required: false
|
|
28
|
+
description: Page number for pagination
|
|
29
|
+
default: 1
|
|
30
|
+
|
|
31
|
+
execution:
|
|
32
|
+
type: http
|
|
33
|
+
method: GET
|
|
34
|
+
url: 'https://api.github.com/search/issues?q={query}&sort={sort}&order={order}&per_page={per_page}&page={page}'
|
|
35
|
+
headers:
|
|
36
|
+
Accept: application/vnd.github+json
|
|
37
|
+
Authorization: 'Bearer {GITHUB_TOKEN}'
|
|
38
|
+
X-GitHub-Api-Version: '2022-11-28'
|
|
39
|
+
timeout: 30000
|
|
40
|
+
|
|
41
|
+
authentication:
|
|
42
|
+
type: bearer
|
|
43
|
+
location: header
|
|
44
|
+
notes:
|
|
45
|
+
env: GITHUB_TOKEN
|
|
46
|
+
rate_limit: 30 req/min authenticated
|
|
47
|
+
scope: Searches both issues and pull requests
|
|
48
|
+
|
|
49
|
+
output_schema:
|
|
50
|
+
type: object
|
|
51
|
+
properties:
|
|
52
|
+
total_count:
|
|
53
|
+
type: number
|
|
54
|
+
items:
|
|
55
|
+
type: array
|
|
56
|
+
description: Array of issue/PR objects
|
|
57
|
+
|
|
58
|
+
error_handling:
|
|
59
|
+
retry: 2
|
|
60
|
+
backoff_type: exponential
|
|
61
|
+
initial_delay_ms: 1000
|
|
62
|
+
|
|
63
|
+
examples:
|
|
64
|
+
- name: Find open issues with bug label
|
|
65
|
+
params:
|
|
66
|
+
query: 'is:open label:bug type:issue'
|
|
67
|
+
- name: Find pull requests awaiting review
|
|
68
|
+
params:
|
|
69
|
+
query: 'is:open type:pr review:pending'
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
name: github-search-repositories
|
|
2
|
+
description: Search for repositories on GitHub by name, description, topics, or stars
|
|
3
|
+
version: '1.0.0'
|
|
4
|
+
|
|
5
|
+
parameters:
|
|
6
|
+
query:
|
|
7
|
+
type: string
|
|
8
|
+
required: true
|
|
9
|
+
description: Search query (e.g., 'language:javascript stars:>1000')
|
|
10
|
+
sort:
|
|
11
|
+
type: string
|
|
12
|
+
required: false
|
|
13
|
+
description: Sort field - stars, forks, help-wanted-issues, or updated
|
|
14
|
+
default: stars
|
|
15
|
+
order:
|
|
16
|
+
type: string
|
|
17
|
+
required: false
|
|
18
|
+
description: Sort order - asc or desc
|
|
19
|
+
default: desc
|
|
20
|
+
per_page:
|
|
21
|
+
type: number
|
|
22
|
+
required: false
|
|
23
|
+
description: Results per page (max 100)
|
|
24
|
+
default: 30
|
|
25
|
+
page:
|
|
26
|
+
type: number
|
|
27
|
+
required: false
|
|
28
|
+
description: Page number for pagination
|
|
29
|
+
default: 1
|
|
30
|
+
|
|
31
|
+
execution:
|
|
32
|
+
type: http
|
|
33
|
+
method: GET
|
|
34
|
+
url: 'https://api.github.com/search/repositories?q={query}&sort={sort}&order={order}&per_page={per_page}&page={page}'
|
|
35
|
+
headers:
|
|
36
|
+
Accept: application/vnd.github+json
|
|
37
|
+
Authorization: 'Bearer {GITHUB_TOKEN}'
|
|
38
|
+
X-GitHub-Api-Version: '2022-11-28'
|
|
39
|
+
timeout: 30000
|
|
40
|
+
|
|
41
|
+
authentication:
|
|
42
|
+
type: bearer
|
|
43
|
+
location: header
|
|
44
|
+
name: Authorization
|
|
45
|
+
notes:
|
|
46
|
+
env: GITHUB_TOKEN
|
|
47
|
+
types: OAuth2 token or Personal Access Token
|
|
48
|
+
rate_limit: 30 req/min authenticated
|
|
49
|
+
|
|
50
|
+
output_schema:
|
|
51
|
+
type: object
|
|
52
|
+
properties:
|
|
53
|
+
total_count:
|
|
54
|
+
type: number
|
|
55
|
+
description: Total number of matching repositories
|
|
56
|
+
incomplete_results:
|
|
57
|
+
type: boolean
|
|
58
|
+
description: Whether results were truncated
|
|
59
|
+
items:
|
|
60
|
+
type: array
|
|
61
|
+
description: Array of repository objects
|
|
62
|
+
|
|
63
|
+
error_handling:
|
|
64
|
+
retry: 2
|
|
65
|
+
backoff_type: exponential
|
|
66
|
+
initial_delay_ms: 1000
|
|
67
|
+
|
|
68
|
+
examples:
|
|
69
|
+
- name: Search popular JavaScript repos
|
|
70
|
+
params:
|
|
71
|
+
query: 'language:javascript stars:>5000'
|
|
72
|
+
sort: stars
|
|
73
|
+
- name: Search recently updated Python projects
|
|
74
|
+
params:
|
|
75
|
+
query: 'language:python updated:>2024-01-01'
|
|
76
|
+
sort: updated
|
|
77
|
+
order: desc
|