0
Update Issue
One script reply has been approved by the moderators Verified

Update an issue. See the docs here

Created by paulpolicar 899 days ago Viewed 3260 times
0
Submitted by hugo697 Bun
Verified 199 days ago
1
import { LinearClient } from '@linear/sdk'
2

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

7
export async function main(resource: Linear, issueId: string, title: string) {
8
	// your code here
9
	const linearClient = new LinearClient({ apiKey: resource.apiKey })
10

11
	const updatedIssue = await linearClient.updateIssue(issueId, { title })
12

13
	return updatedIssue.issue
14
}
15