@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.
@@ -0,0 +1,103 @@
1
+ name: github-create-pull-request
2
+ description: Create a new pull request
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
+ title:
16
+ type: string
17
+ required: true
18
+ description: Pull request title
19
+ body:
20
+ type: string
21
+ required: false
22
+ description: Pull request description
23
+ head:
24
+ type: string
25
+ required: true
26
+ description: Head branch name or user:ref
27
+ base:
28
+ type: string
29
+ required: true
30
+ description: Base branch name
31
+ draft:
32
+ type: boolean
33
+ required: false
34
+ description: Whether PR is a draft
35
+ default: false
36
+ maintainer_can_modify:
37
+ type: boolean
38
+ required: false
39
+ description: Allow maintainers to edit PR
40
+ default: true
41
+
42
+ execution:
43
+ type: http
44
+ method: POST
45
+ url: 'https://api.github.com/repos/{owner}/{repo}/pulls'
46
+ headers:
47
+ Accept: application/vnd.github+json
48
+ Authorization: 'Bearer {GITHUB_TOKEN}'
49
+ X-GitHub-Api-Version: '2022-11-28'
50
+ Content-Type: application/json
51
+ body:
52
+ title: '{title}'
53
+ body: '{body}'
54
+ head: '{head}'
55
+ base: '{base}'
56
+ draft: '{draft}'
57
+ maintainer_can_modify: '{maintainer_can_modify}'
58
+ timeout: 15000
59
+
60
+ authentication:
61
+ type: bearer
62
+ location: header
63
+ notes:
64
+ env: GITHUB_TOKEN
65
+ required: true
66
+ permission: Pull requests write
67
+
68
+ output_schema:
69
+ type: object
70
+ properties:
71
+ id:
72
+ type: number
73
+ number:
74
+ type: number
75
+ title:
76
+ type: string
77
+ state:
78
+ type: string
79
+ html_url:
80
+ type: string
81
+
82
+ error_handling:
83
+ retry: 1
84
+ backoff_type: exponential
85
+ initial_delay_ms: 1000
86
+
87
+ examples:
88
+ - name: Create pull request
89
+ params:
90
+ owner: myorg
91
+ repo: myrepo
92
+ title: Add new feature
93
+ body: This PR adds support for...
94
+ head: feature/new-feature
95
+ base: main
96
+ - name: Create draft PR
97
+ params:
98
+ owner: myorg
99
+ repo: myrepo
100
+ title: WIP - Feature in progress
101
+ head: feature/experimental
102
+ base: main
103
+ draft: true
@@ -0,0 +1,103 @@
1
+ name: github-create-release
2
+ description: Create a new release in a repository
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
+ tag_name:
16
+ type: string
17
+ required: true
18
+ description: Release tag name (e.g., v1.0.0)
19
+ name:
20
+ type: string
21
+ required: false
22
+ description: Release name
23
+ body:
24
+ type: string
25
+ required: false
26
+ description: Release notes/description
27
+ draft:
28
+ type: boolean
29
+ required: false
30
+ description: Create as draft release
31
+ default: false
32
+ prerelease:
33
+ type: boolean
34
+ required: false
35
+ description: Mark as prerelease
36
+ default: false
37
+ target_commitish:
38
+ type: string
39
+ required: false
40
+ description: Target branch or commit SHA
41
+
42
+ execution:
43
+ type: http
44
+ method: POST
45
+ url: 'https://api.github.com/repos/{owner}/{repo}/releases'
46
+ headers:
47
+ Accept: application/vnd.github+json
48
+ Authorization: 'Bearer {GITHUB_TOKEN}'
49
+ X-GitHub-Api-Version: '2022-11-28'
50
+ Content-Type: application/json
51
+ body:
52
+ tag_name: '{tag_name}'
53
+ name: '{name}'
54
+ body: '{body}'
55
+ draft: '{draft}'
56
+ prerelease: '{prerelease}'
57
+ target_commitish: '{target_commitish}'
58
+ timeout: 15000
59
+
60
+ authentication:
61
+ type: bearer
62
+ location: header
63
+ notes:
64
+ env: GITHUB_TOKEN
65
+ required: true
66
+ permission: Repository content write
67
+
68
+ output_schema:
69
+ type: object
70
+ properties:
71
+ id:
72
+ type: number
73
+ tag_name:
74
+ type: string
75
+ name:
76
+ type: string
77
+ draft:
78
+ type: boolean
79
+ prerelease:
80
+ type: boolean
81
+ html_url:
82
+ type: string
83
+
84
+ error_handling:
85
+ retry: 1
86
+ backoff_type: exponential
87
+ initial_delay_ms: 1000
88
+
89
+ examples:
90
+ - name: Create release
91
+ params:
92
+ owner: myorg
93
+ repo: myrepo
94
+ tag_name: v1.0.0
95
+ name: Version 1.0.0
96
+ body: Initial release with core features
97
+ - name: Create prerelease
98
+ params:
99
+ owner: myorg
100
+ repo: myrepo
101
+ tag_name: v2.0.0-beta
102
+ prerelease: true
103
+ draft: true
@@ -0,0 +1,112 @@
1
+ name: github-create-repository
2
+ description: Create a new repository in an organization or user account
3
+ version: '1.0.0'
4
+ requires_approval: true
5
+
6
+ parameters:
7
+ org:
8
+ type: string
9
+ required: false
10
+ description: Organization name (omit for personal repos)
11
+ name:
12
+ type: string
13
+ required: true
14
+ description: Repository name
15
+ description:
16
+ type: string
17
+ required: false
18
+ description: Repository description
19
+ private:
20
+ type: boolean
21
+ required: false
22
+ description: Whether repo is private
23
+ default: false
24
+ has_issues:
25
+ type: boolean
26
+ required: false
27
+ description: Enable issues feature
28
+ default: true
29
+ has_wiki:
30
+ type: boolean
31
+ required: false
32
+ description: Enable wiki feature
33
+ default: true
34
+ has_downloads:
35
+ type: boolean
36
+ required: false
37
+ description: Enable downloads feature
38
+ default: true
39
+ auto_init:
40
+ type: boolean
41
+ required: false
42
+ description: Initialize with README, .gitignore, license
43
+ default: false
44
+ license_template:
45
+ type: string
46
+ required: false
47
+ description: License template (mit, apache-2.0, etc.)
48
+ gitignore_template:
49
+ type: string
50
+ required: false
51
+ description: Gitignore template (Node, Python, etc.)
52
+
53
+ execution:
54
+ type: http
55
+ method: POST
56
+ url: 'https://api.github.com/orgs/{org}/repos'
57
+ headers:
58
+ Accept: application/vnd.github+json
59
+ Authorization: 'Bearer {GITHUB_TOKEN}'
60
+ X-GitHub-Api-Version: '2022-11-28'
61
+ Content-Type: application/json
62
+ body:
63
+ name: '{name}'
64
+ description: '{description}'
65
+ private: '{private}'
66
+ has_issues: '{has_issues}'
67
+ has_wiki: '{has_wiki}'
68
+ auto_init: '{auto_init}'
69
+ license_template: '{license_template}'
70
+ gitignore_template: '{gitignore_template}'
71
+ timeout: 15000
72
+
73
+ authentication:
74
+ type: bearer
75
+ location: header
76
+ notes:
77
+ env: GITHUB_TOKEN
78
+ required: true
79
+ permission: Repo write
80
+
81
+ output_schema:
82
+ type: object
83
+ properties:
84
+ id:
85
+ type: number
86
+ name:
87
+ type: string
88
+ full_name:
89
+ type: string
90
+ private:
91
+ type: boolean
92
+ html_url:
93
+ type: string
94
+
95
+ error_handling:
96
+ retry: 1
97
+ backoff_type: exponential
98
+ initial_delay_ms: 1000
99
+
100
+ examples:
101
+ - name: Create public repository
102
+ params:
103
+ org: myorg
104
+ name: new-project
105
+ description: My new project
106
+ - name: Create private repo with license
107
+ params:
108
+ org: myorg
109
+ name: private-tools
110
+ private: true
111
+ license_template: mit
112
+ auto_init: true
@@ -0,0 +1,51 @@
1
+ name: github-delete-repository
2
+ description: Delete a repository (requires admin access)
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
+
16
+ execution:
17
+ type: http
18
+ method: DELETE
19
+ url: 'https://api.github.com/repos/{owner}/{repo}'
20
+ headers:
21
+ Accept: application/vnd.github+json
22
+ Authorization: 'Bearer {GITHUB_TOKEN}'
23
+ X-GitHub-Api-Version: '2022-11-28'
24
+ timeout: 15000
25
+
26
+ authentication:
27
+ type: bearer
28
+ location: header
29
+ notes:
30
+ env: GITHUB_TOKEN
31
+ required: true
32
+ permission: Admin (repository deletion/destruction)
33
+ caution: This is a destructive operation and cannot be undone
34
+
35
+ output_schema:
36
+ type: object
37
+ properties:
38
+ status:
39
+ type: number
40
+ description: HTTP 204 status code on success
41
+
42
+ error_handling:
43
+ retry: 1
44
+ backoff_type: exponential
45
+ initial_delay_ms: 1000
46
+
47
+ examples:
48
+ - name: Delete repository
49
+ params:
50
+ owner: myorg
51
+ repo: deprecated-project
@@ -0,0 +1,70 @@
1
+ name: github-get-issue
2
+ description: Get details of a specific issue
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
+ issue_number:
15
+ type: number
16
+ required: true
17
+ description: Issue number
18
+
19
+ execution:
20
+ type: http
21
+ method: GET
22
+ url: 'https://api.github.com/repos/{owner}/{repo}/issues/{issue_number}'
23
+ headers:
24
+ Accept: application/vnd.github+json
25
+ Authorization: 'Bearer {GITHUB_TOKEN}'
26
+ X-GitHub-Api-Version: '2022-11-28'
27
+ timeout: 10000
28
+
29
+ authentication:
30
+ type: bearer
31
+ location: header
32
+ notes:
33
+ env: GITHUB_TOKEN
34
+ optional: Public repos don't require authentication
35
+
36
+ output_schema:
37
+ type: object
38
+ properties:
39
+ id:
40
+ type: number
41
+ number:
42
+ type: number
43
+ title:
44
+ type: string
45
+ body:
46
+ type: string
47
+ state:
48
+ type: string
49
+ assignees:
50
+ type: array
51
+ labels:
52
+ type: array
53
+ created_at:
54
+ type: string
55
+ updated_at:
56
+ type: string
57
+ html_url:
58
+ type: string
59
+
60
+ error_handling:
61
+ retry: 2
62
+ backoff_type: exponential
63
+ initial_delay_ms: 500
64
+
65
+ examples:
66
+ - name: Get issue details
67
+ params:
68
+ owner: kubernetes
69
+ repo: kubernetes
70
+ issue_number: 12345
@@ -0,0 +1,83 @@
1
+ name: github-get-repository
2
+ description: Get detailed information about 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
+
15
+ execution:
16
+ type: http
17
+ method: GET
18
+ url: 'https://api.github.com/repos/{owner}/{repo}'
19
+ headers:
20
+ Accept: application/vnd.github+json
21
+ Authorization: 'Bearer {GITHUB_TOKEN}'
22
+ X-GitHub-Api-Version: '2022-11-28'
23
+ timeout: 10000
24
+
25
+ authentication:
26
+ type: bearer
27
+ location: header
28
+ notes:
29
+ env: GITHUB_TOKEN
30
+ optional: Public repos don't require authentication
31
+
32
+ output_schema:
33
+ type: object
34
+ properties:
35
+ id:
36
+ type: number
37
+ name:
38
+ type: string
39
+ full_name:
40
+ type: string
41
+ owner:
42
+ type: object
43
+ private:
44
+ type: boolean
45
+ description:
46
+ type: string
47
+ fork:
48
+ type: boolean
49
+ created_at:
50
+ type: string
51
+ updated_at:
52
+ type: string
53
+ pushed_at:
54
+ type: string
55
+ homepage:
56
+ type: string
57
+ language:
58
+ type: string
59
+ stargazers_count:
60
+ type: number
61
+ watchers_count:
62
+ type: number
63
+ forks_count:
64
+ type: number
65
+ open_issues_count:
66
+ type: number
67
+ topics:
68
+ type: array
69
+ archived:
70
+ type: boolean
71
+ disabled:
72
+ type: boolean
73
+
74
+ error_handling:
75
+ retry: 2
76
+ backoff_type: exponential
77
+ initial_delay_ms: 500
78
+
79
+ examples:
80
+ - name: Get repository info
81
+ params:
82
+ owner: kubernetes
83
+ repo: kubernetes
@@ -0,0 +1,79 @@
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?state={state}&severity={severity}&sort={sort}&direction={direction}&per_page={per_page}'
42
+ headers:
43
+ Accept: application/vnd.github+json
44
+ Authorization: 'Bearer {GITHUB_TOKEN}'
45
+ X-GitHub-Api-Version: '2022-11-28'
46
+ timeout: 15000
47
+
48
+ authentication:
49
+ type: bearer
50
+ location: header
51
+ notes:
52
+ env: GITHUB_TOKEN
53
+ required: true
54
+ permission: Security events read
55
+ note: Requires GitHub Advanced Security enabled
56
+
57
+ output_schema:
58
+ type: array
59
+ items:
60
+ type: object
61
+ description: Code alert object with severity and status
62
+
63
+ error_handling:
64
+ retry: 2
65
+ backoff_type: exponential
66
+ initial_delay_ms: 1000
67
+
68
+ examples:
69
+ - name: List critical security alerts
70
+ params:
71
+ owner: myorg
72
+ repo: myrepo
73
+ state: open
74
+ severity: critical
75
+ - name: List all alerts
76
+ params:
77
+ owner: myorg
78
+ repo: myrepo
79
+ sort: updated
@@ -0,0 +1,72 @@
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?affiliation={affiliation}&permission={permission}&per_page={per_page}&page={page}'
38
+ headers:
39
+ Accept: application/vnd.github+json
40
+ Authorization: 'Bearer {GITHUB_TOKEN}'
41
+ X-GitHub-Api-Version: '2022-11-28'
42
+ timeout: 15000
43
+
44
+ authentication:
45
+ type: bearer
46
+ location: header
47
+ notes:
48
+ env: GITHUB_TOKEN
49
+ required: true
50
+ permission: Repository metadata read
51
+
52
+ output_schema:
53
+ type: array
54
+ items:
55
+ type: object
56
+ description: Collaborator object with permissions
57
+
58
+ error_handling:
59
+ retry: 2
60
+ backoff_type: exponential
61
+ initial_delay_ms: 1000
62
+
63
+ examples:
64
+ - name: List all collaborators
65
+ params:
66
+ owner: myorg
67
+ repo: myrepo
68
+ - name: List admin collaborators
69
+ params:
70
+ owner: myorg
71
+ repo: myrepo
72
+ permission: admin