matimo-github 0.1.0__py3-none-any.whl

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.
Files changed (27) hide show
  1. matimo_github/__init__.py +17 -0
  2. matimo_github/tools/add-collaborator/definition.yaml +73 -0
  3. matimo_github/tools/create-issue/definition.yaml +96 -0
  4. matimo_github/tools/create-pull-request/definition.yaml +103 -0
  5. matimo_github/tools/create-release/definition.yaml +103 -0
  6. matimo_github/tools/create-repository/definition.yaml +112 -0
  7. matimo_github/tools/delete-repository/definition.yaml +51 -0
  8. matimo_github/tools/get-issue/definition.yaml +70 -0
  9. matimo_github/tools/get-repository/definition.yaml +83 -0
  10. matimo_github/tools/list-code-alerts/definition.yaml +85 -0
  11. matimo_github/tools/list-collaborators/definition.yaml +77 -0
  12. matimo_github/tools/list-commits/definition.yaml +81 -0
  13. matimo_github/tools/list-issues/definition.yaml +96 -0
  14. matimo_github/tools/list-pull-requests/definition.yaml +93 -0
  15. matimo_github/tools/list-releases/definition.yaml +66 -0
  16. matimo_github/tools/list-repositories/definition.yaml +79 -0
  17. matimo_github/tools/merge-pull-request/definition.yaml +88 -0
  18. matimo_github/tools/search-code/definition.yaml +75 -0
  19. matimo_github/tools/search-issues/definition.yaml +75 -0
  20. matimo_github/tools/search-repositories/definition.yaml +83 -0
  21. matimo_github/tools/search-users/definition.yaml +75 -0
  22. matimo_github/tools/update-code-alert/definition.yaml +86 -0
  23. matimo_github/tools/update-issue/definition.yaml +98 -0
  24. matimo_github-0.1.0.dist-info/METADATA +151 -0
  25. matimo_github-0.1.0.dist-info/RECORD +27 -0
  26. matimo_github-0.1.0.dist-info/WHEEL +4 -0
  27. matimo_github-0.1.0.dist-info/entry_points.txt +2 -0
@@ -0,0 +1,85 @@
1
+ name: github-list-code-alerts
2
+ description: List code scanning security alerts 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
+ state:
15
+ type: string
16
+ required: false
17
+ description: Filter by state - open, closed, dismissed, or fixed
18
+ severity:
19
+ type: string
20
+ required: false
21
+ description: Filter by severity - critical, high, medium, low, warning, note, or error
22
+ sort:
23
+ type: string
24
+ required: false
25
+ description: Sort by - created or updated
26
+ default: created
27
+ direction:
28
+ type: string
29
+ required: false
30
+ description: Sort direction - asc or desc
31
+ default: desc
32
+ per_page:
33
+ type: number
34
+ required: false
35
+ description: Results per page (max 100)
36
+ default: 30
37
+
38
+ execution:
39
+ type: http
40
+ method: GET
41
+ url: 'https://api.github.com/repos/{owner}/{repo}/code-scanning/alerts'
42
+ query_params:
43
+ state: '{state}'
44
+ severity: '{severity}'
45
+ sort: '{sort}'
46
+ direction: '{direction}'
47
+ per_page: '{per_page}'
48
+ headers:
49
+ Accept: application/vnd.github+json
50
+ Authorization: 'Bearer {GITHUB_TOKEN}'
51
+ X-GitHub-Api-Version: '2022-11-28'
52
+ timeout: 15000
53
+
54
+ authentication:
55
+ type: bearer
56
+ location: header
57
+ notes:
58
+ env: GITHUB_TOKEN
59
+ required: true
60
+ permission: Security events read
61
+ note: Requires GitHub Advanced Security enabled
62
+
63
+ output_schema:
64
+ type: array
65
+ items:
66
+ type: object
67
+ description: Code alert object with severity and status
68
+
69
+ error_handling:
70
+ retry: 2
71
+ backoff_type: exponential
72
+ initial_delay_ms: 1000
73
+
74
+ examples:
75
+ - name: List critical security alerts
76
+ params:
77
+ owner: myorg
78
+ repo: myrepo
79
+ state: open
80
+ severity: critical
81
+ - name: List all alerts
82
+ params:
83
+ owner: myorg
84
+ repo: myrepo
85
+ sort: updated
@@ -0,0 +1,77 @@
1
+ name: github-list-collaborators
2
+ description: List collaborators on 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
+ affiliation:
15
+ type: string
16
+ required: false
17
+ description: Filter by affiliation - all, outside, or direct
18
+ default: all
19
+ permission:
20
+ type: string
21
+ required: false
22
+ description: Filter by permission - pull, triage, push, maintain, or admin
23
+ per_page:
24
+ type: number
25
+ required: false
26
+ description: Results per page (max 100)
27
+ default: 30
28
+ page:
29
+ type: number
30
+ required: false
31
+ description: Page number for pagination
32
+ default: 1
33
+
34
+ execution:
35
+ type: http
36
+ method: GET
37
+ url: 'https://api.github.com/repos/{owner}/{repo}/collaborators'
38
+ query_params:
39
+ affiliation: '{affiliation}'
40
+ permission: '{permission}'
41
+ per_page: '{per_page}'
42
+ page: '{page}'
43
+ headers:
44
+ Accept: application/vnd.github+json
45
+ Authorization: 'Bearer {GITHUB_TOKEN}'
46
+ X-GitHub-Api-Version: '2022-11-28'
47
+ timeout: 15000
48
+
49
+ authentication:
50
+ type: bearer
51
+ location: header
52
+ notes:
53
+ env: GITHUB_TOKEN
54
+ required: true
55
+ permission: Repository metadata read
56
+
57
+ output_schema:
58
+ type: array
59
+ items:
60
+ type: object
61
+ description: Collaborator object with permissions
62
+
63
+ error_handling:
64
+ retry: 2
65
+ backoff_type: exponential
66
+ initial_delay_ms: 1000
67
+
68
+ examples:
69
+ - name: List all collaborators
70
+ params:
71
+ owner: myorg
72
+ repo: myrepo
73
+ - name: List admin collaborators
74
+ params:
75
+ owner: myorg
76
+ repo: myrepo
77
+ permission: admin
@@ -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