0
Search Issues
One script reply has been approved by the moderators Verified

Search issues. See the docs here

Created by armancerivoltare 930 days ago Viewed 3428 times
0
Submitted by hugo697 Bun
Verified 229 days ago
1
import { LinearClient } from '@linear/sdk'
2

3
type Linear = {
4
	apiKey: string
5
}
6

7
export async function main(resource: Linear, term: string) {
8
	const linearClient = new LinearClient({ apiKey: resource.apiKey })
9

10
	const searchIssues = await linearClient.searchIssues(term)
11

12
	return searchIssues
13
}
14