Update an issue. See the docs here
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