@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,69 @@
1
+ name: github-search-users
2
+ description: Search for GitHub users by name, location, or follower count
3
+ version: '1.0.0'
4
+
5
+ parameters:
6
+ query:
7
+ type: string
8
+ required: true
9
+ description: Search query (e.g., 'location:San Francisco followers:>5000')
10
+ sort:
11
+ type: string
12
+ required: false
13
+ description: Sort field - followers, repositories, or joined
14
+ default: followers
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/users?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
+ optional: Can be called without authentication (public users only)
47
+ rate_limit: 30 req/min authenticated
48
+
49
+ output_schema:
50
+ type: object
51
+ properties:
52
+ total_count:
53
+ type: number
54
+ items:
55
+ type: array
56
+ description: Array of user objects
57
+
58
+ error_handling:
59
+ retry: 2
60
+ backoff_type: exponential
61
+ initial_delay_ms: 1000
62
+
63
+ examples:
64
+ - name: Find developers in San Francisco
65
+ params:
66
+ query: 'location:"San Francisco" followers:>100'
67
+ - name: Find contributors to TypeScript
68
+ params:
69
+ query: 'org:microsoft followers:>50'
@@ -0,0 +1,86 @@
1
+ name: github-update-code-alert
2
+ description: Update the status of a code scanning security alert
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
+ alert_number:
16
+ type: number
17
+ required: true
18
+ description: Alert number
19
+ state:
20
+ type: string
21
+ required: true
22
+ description: New state - open, dismissed, or fixed
23
+ dismissed_reason:
24
+ type: string
25
+ required: false
26
+ description: If dismissing, the reason - false positive, won't fix, used in tests, etc.
27
+ dismissed_comment:
28
+ type: string
29
+ required: false
30
+ description: Optional comment when dismissing
31
+
32
+ execution:
33
+ type: http
34
+ method: PATCH
35
+ url: 'https://api.github.com/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}'
36
+ headers:
37
+ Accept: application/vnd.github+json
38
+ Authorization: 'Bearer {GITHUB_TOKEN}'
39
+ X-GitHub-Api-Version: '2022-11-28'
40
+ Content-Type: application/json
41
+ body:
42
+ state: '{state}'
43
+ dismissed_reason: '{dismissed_reason}'
44
+ dismissed_comment: '{dismissed_comment}'
45
+ timeout: 15000
46
+
47
+ authentication:
48
+ type: bearer
49
+ location: header
50
+ notes:
51
+ env: GITHUB_TOKEN
52
+ required: true
53
+ permission: Security events write
54
+ note: Requires GitHub Advanced Security enabled
55
+
56
+ output_schema:
57
+ type: object
58
+ properties:
59
+ number:
60
+ type: number
61
+ state:
62
+ type: string
63
+ dismissed_at:
64
+ type: string
65
+ dismissed_reason:
66
+ type: string
67
+
68
+ error_handling:
69
+ retry: 1
70
+ backoff_type: exponential
71
+ initial_delay_ms: 1000
72
+
73
+ examples:
74
+ - name: Dismiss false positive
75
+ params:
76
+ owner: myorg
77
+ repo: myrepo
78
+ alert_number: 42
79
+ state: dismissed
80
+ dismissed_reason: false positive
81
+ - name: Reopen alert
82
+ params:
83
+ owner: myorg
84
+ repo: myrepo
85
+ alert_number: 42
86
+ state: open
@@ -0,0 +1,98 @@
1
+ name: github-update-issue
2
+ description: Update an issue - title, body, state, assignees, labels
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
+ issue_number:
16
+ type: number
17
+ required: true
18
+ description: Issue number
19
+ title:
20
+ type: string
21
+ required: false
22
+ description: New issue title
23
+ body:
24
+ type: string
25
+ required: false
26
+ description: New issue body
27
+ state:
28
+ type: string
29
+ required: false
30
+ description: New state - open or closed
31
+ assignees:
32
+ type: array
33
+ required: false
34
+ description: Array of usernames to assign
35
+ labels:
36
+ type: array
37
+ required: false
38
+ description: Array of label names
39
+
40
+ execution:
41
+ type: http
42
+ method: PATCH
43
+ url: 'https://api.github.com/repos/{owner}/{repo}/issues/{issue_number}'
44
+ headers:
45
+ Accept: application/vnd.github+json
46
+ Authorization: 'Bearer {GITHUB_TOKEN}'
47
+ X-GitHub-Api-Version: '2022-11-28'
48
+ Content-Type: application/json
49
+ body:
50
+ title: '{title}'
51
+ body: '{body}'
52
+ state: '{state}'
53
+ assignees: '{assignees}'
54
+ labels: '{labels}'
55
+ timeout: 15000
56
+
57
+ authentication:
58
+ type: bearer
59
+ location: header
60
+ notes:
61
+ env: GITHUB_TOKEN
62
+ required: true
63
+ permission: Issues write
64
+
65
+ output_schema:
66
+ type: object
67
+ properties:
68
+ id:
69
+ type: number
70
+ number:
71
+ type: number
72
+ title:
73
+ type: string
74
+ state:
75
+ type: string
76
+ updated_at:
77
+ type: string
78
+
79
+ error_handling:
80
+ retry: 1
81
+ backoff_type: exponential
82
+ initial_delay_ms: 1000
83
+
84
+ examples:
85
+ - name: Close an issue
86
+ params:
87
+ owner: myorg
88
+ repo: myrepo
89
+ issue_number: 42
90
+ state: closed
91
+ - name: Update issue labels
92
+ params:
93
+ owner: myorg
94
+ repo: myrepo
95
+ issue_number: 42
96
+ labels:
97
+ - fixed
98
+ - closed