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

Update an issue. See the docs here

Created by paulpolicar 1295 days ago
Submitted by hugo697 Bun
Verified 230 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