@matimo/github 0.1.0-alpha.10

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.
@@ -0,0 +1,81 @@
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'
41
+ query_params:
42
+ sha: '{sha}'
43
+ path: '{path}'
44
+ author: '{author}'
45
+ per_page: '{per_page}'
46
+ page: '{page}'
47
+ headers:
48
+ Accept: application/vnd.github+json
49
+ Authorization: 'Bearer {GITHUB_TOKEN}'
50
+ X-GitHub-Api-Version: '2022-11-28'
51
+ timeout: 15000
52
+
53
+ authentication:
54
+ type: bearer
55
+ location: header
56
+ notes:
57
+ env: GITHUB_TOKEN
58
+ optional: Public repos don't require authentication
59
+
60
+ output_schema:
61
+ type: array
62
+ items:
63
+ type: object
64
+ description: Commit object
65
+
66
+ error_handling:
67
+ retry: 2
68
+ backoff_type: exponential
69
+ initial_delay_ms: 1000
70
+
71
+ examples:
72
+ - name: List recent commits
73
+ params:
74
+ owner: kubernetes
75
+ repo: kubernetes
76
+ sha: main
77
+ - name: Commits by author
78
+ params:
79
+ owner: nodejs
80
+ repo: node
81
+ author: torvalds@linux-foundation.org
@@ -0,0 +1,96 @@
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'
52
+ query_params:
53
+ state: '{state}'
54
+ assignee: '{assignee}'
55
+ labels: '{labels}'
56
+ sort: '{sort}'
57
+ direction: '{direction}'
58
+ per_page: '{per_page}'
59
+ page: '{page}'
60
+ headers:
61
+ Accept: application/vnd.github+json
62
+ Authorization: 'Bearer {GITHUB_TOKEN}'
63
+ X-GitHub-Api-Version: '2022-11-28'
64
+ timeout: 15000
65
+
66
+ authentication:
67
+ type: bearer
68
+ location: header
69
+ notes:
70
+ env: GITHUB_TOKEN
71
+ scope: Public repos don't require authentication
72
+ public: Can query without token
73
+
74
+ output_schema:
75
+ type: array
76
+ items:
77
+ type: object
78
+ description: Issue object
79
+
80
+ error_handling:
81
+ retry: 2
82
+ backoff_type: exponential
83
+ initial_delay_ms: 1000
84
+
85
+ examples:
86
+ - name: List open issues
87
+ params:
88
+ owner: kubernetes
89
+ repo: kubernetes
90
+ state: open
91
+ - name: List issues assigned to user
92
+ params:
93
+ owner: nodejs
94
+ repo: node
95
+ assignee: username
96
+ sort: updated
@@ -0,0 +1,93 @@
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'
52
+ query_params:
53
+ state: '{state}'
54
+ sort: '{sort}'
55
+ direction: '{direction}'
56
+ per_page: '{per_page}'
57
+ page: '{page}'
58
+ headers:
59
+ Accept: application/vnd.github+json
60
+ Authorization: 'Bearer {GITHUB_TOKEN}'
61
+ X-GitHub-Api-Version: '2022-11-28'
62
+ timeout: 15000
63
+
64
+ authentication:
65
+ type: bearer
66
+ location: header
67
+ notes:
68
+ env: GITHUB_TOKEN
69
+ optional: Public repos don't require authentication
70
+
71
+ output_schema:
72
+ type: array
73
+ items:
74
+ type: object
75
+ description: Pull request object
76
+
77
+ error_handling:
78
+ retry: 2
79
+ backoff_type: exponential
80
+ initial_delay_ms: 1000
81
+
82
+ examples:
83
+ - name: List open PRs
84
+ params:
85
+ owner: kubernetes
86
+ repo: kubernetes
87
+ state: open
88
+ - name: List recently updated PRs
89
+ params:
90
+ owner: nodejs
91
+ repo: node
92
+ sort: updated
93
+ direction: desc
@@ -0,0 +1,66 @@
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'
29
+ query_params:
30
+ per_page: '{per_page}'
31
+ page: '{page}'
32
+ headers:
33
+ Accept: application/vnd.github+json
34
+ Authorization: 'Bearer {GITHUB_TOKEN}'
35
+ X-GitHub-Api-Version: '2022-11-28'
36
+ timeout: 15000
37
+
38
+ authentication:
39
+ type: bearer
40
+ location: header
41
+ notes:
42
+ env: GITHUB_TOKEN
43
+ optional: Public repos don't require authentication
44
+
45
+ output_schema:
46
+ type: array
47
+ items:
48
+ type: object
49
+ description: Release object
50
+
51
+ error_handling:
52
+ retry: 2
53
+ backoff_type: exponential
54
+ initial_delay_ms: 1000
55
+
56
+ examples:
57
+ - name: List all releases
58
+ params:
59
+ owner: kubernetes
60
+ repo: kubernetes
61
+ - name: List with pagination
62
+ params:
63
+ owner: nodejs
64
+ repo: node
65
+ per_page: 10
66
+ page: 2
@@ -0,0 +1,79 @@
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'
40
+ query_params:
41
+ type: '{type}'
42
+ sort: '{sort}'
43
+ direction: '{direction}'
44
+ per_page: '{per_page}'
45
+ page: '{page}'
46
+ headers:
47
+ Accept: application/vnd.github+json
48
+ Authorization: 'Bearer {GITHUB_TOKEN}'
49
+ X-GitHub-Api-Version: '2022-11-28'
50
+ timeout: 15000
51
+
52
+ authentication:
53
+ type: bearer
54
+ location: header
55
+ notes:
56
+ env: GITHUB_TOKEN
57
+ optional: Public repos don't require authentication
58
+
59
+ output_schema:
60
+ type: array
61
+ items:
62
+ type: object
63
+ description: Repository object
64
+
65
+ error_handling:
66
+ retry: 2
67
+ backoff_type: exponential
68
+ initial_delay_ms: 1000
69
+
70
+ examples:
71
+ - name: List organization repositories
72
+ params:
73
+ owner: kubernetes
74
+ type: all
75
+ sort: updated
76
+ - name: List user public repositories
77
+ params:
78
+ owner: torvalds
79
+ 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,75 @@
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'
35
+ query_params:
36
+ q: '{query}'
37
+ sort: '{sort}'
38
+ order: '{order}'
39
+ per_page: '{per_page}'
40
+ 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: 30000
46
+
47
+ authentication:
48
+ type: bearer
49
+ location: header
50
+ notes:
51
+ env: GITHUB_TOKEN
52
+ rate_limit: 10 req/min authenticated (requires authentication)
53
+ note: Code search requires authentication and only searches default branch
54
+
55
+ output_schema:
56
+ type: object
57
+ properties:
58
+ total_count:
59
+ type: number
60
+ items:
61
+ type: array
62
+ description: Array of code search result objects
63
+
64
+ error_handling:
65
+ retry: 2
66
+ backoff_type: exponential
67
+ initial_delay_ms: 1000
68
+
69
+ examples:
70
+ - name: Find function definitions
71
+ params:
72
+ query: 'function handleSubmit repo:facebook/react'
73
+ - name: Search for configuration files
74
+ params:
75
+ query: 'filename:tsconfig.json'
@@ -0,0 +1,75 @@
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'
35
+ query_params:
36
+ q: '{query}'
37
+ sort: '{sort}'
38
+ order: '{order}'
39
+ per_page: '{per_page}'
40
+ 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: 30000
46
+
47
+ authentication:
48
+ type: bearer
49
+ location: header
50
+ notes:
51
+ env: GITHUB_TOKEN
52
+ rate_limit: 30 req/min authenticated
53
+ scope: Searches both issues and pull requests
54
+
55
+ output_schema:
56
+ type: object
57
+ properties:
58
+ total_count:
59
+ type: number
60
+ items:
61
+ type: array
62
+ description: Array of issue/PR objects
63
+
64
+ error_handling:
65
+ retry: 2
66
+ backoff_type: exponential
67
+ initial_delay_ms: 1000
68
+
69
+ examples:
70
+ - name: Find open issues with bug label
71
+ params:
72
+ query: 'is:open label:bug type:issue'
73
+ - name: Find pull requests awaiting review
74
+ params:
75
+ query: 'is:open type:pr review:pending'